From 162069903b366ed2a92ff2209b18dba5ddd62623 Mon Sep 17 00:00:00 2001 From: Innei Date: Wed, 31 Jan 2024 14:41:32 +0800 Subject: [PATCH] fix: use put instead of patch in post update Signed-off-by: Innei --- src/queries/definition/post.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,