diff --git a/src/queries/definition/post.ts b/src/queries/definition/post.ts index c0f5935748..7b8c4c2562 100644 --- a/src/queries/definition/post.ts +++ b/src/queries/definition/post.ts @@ -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,