Skip to content

Commit

Permalink
fix: use put instead of patch in post update
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jan 31, 2024
1 parent 7888b72 commit 1620699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/queries/definition/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const useUpdatePost = () => {
for (const key of readonlyKeys) {
delete nextData[key]
}
return apiClient.post.proxy(id).patch<{
return apiClient.post.proxy(id).put<{
id: string
}>({
data: nextData,
Expand Down

0 comments on commit 1620699

Please sign in to comment.