From 3fa53843c37d6fca83e52cebb591af52e7d5187d Mon Sep 17 00:00:00 2001 From: "CANCERYS\\kw093" Date: Thu, 18 Sep 2025 20:43:43 +0800 Subject: [PATCH] update --- src/app/api/pickOrder/actions.ts | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/app/api/pickOrder/actions.ts b/src/app/api/pickOrder/actions.ts index 2cd18f7..9425394 100644 --- a/src/app/api/pickOrder/actions.ts +++ b/src/app/api/pickOrder/actions.ts @@ -302,16 +302,13 @@ export const autoAssignAndReleasePickOrderByStore = async ( userId: number, storeId: string ): Promise => { - const payload: AutoAssignReleaseByStoreRequest = { userId, storeId }; - const response = await serverFetchJson( - `${BASE_API_URL}/pickOrder/auto-assign-release-by-store`, - { - method: "POST", - headers: { "Content-Type": "application/json" }, - body: JSON.stringify(payload), - next: { tags: ["pickorder"] }, - } - ); + const url = `${BASE_API_URL}/pickOrder/auto-assign-release-by-store?userId=${userId}&storeId=${encodeURIComponent(storeId)}`; + const response = await serverFetchJson(url, { + method: "POST", + headers: { "Content-Type": "application/json" }, + // no body + next: { tags: ["pickorder"] }, + }); revalidateTag("pickorder"); return response; };