Skip to content

Commit

Permalink
Merge pull request #339 from dnd-side-project/338-fix-즐겨찾기-실패하는-문제-해결
Browse files Browse the repository at this point in the history
fix: 즐겨찾기 실패하는 문제 수정
  • Loading branch information
gihwan-dev authored Dec 9, 2024
2 parents 8bb949c + d87ac1c commit 7c76306
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/apis/myPlant/updateMyPlantFeed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ export interface UpdateMyPlantFeedParams {
}

export const updateMyPlantFeed = (params: UpdateMyPlantFeedParams) => {
return privateAxios.patch(`/myplants/image/${params.imageId}`);
return privateAxios.patch(`/myplants/image/${params.imageId}`, {
favorite: params.favorite,
});
};

0 comments on commit 7c76306

Please sign in to comment.