From 5112629a0fa370b467754d99500aaf2640bac3d0 Mon Sep 17 00:00:00 2001 From: Uffy Date: Tue, 30 Jul 2024 17:54:54 +0800 Subject: [PATCH] fix: api params --- next/web/src/App/Admin/Tickets/Topbar/batchUpdate.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/next/web/src/App/Admin/Tickets/Topbar/batchUpdate.ts b/next/web/src/App/Admin/Tickets/Topbar/batchUpdate.ts index 7a41adfb2..70b5e3782 100644 --- a/next/web/src/App/Admin/Tickets/Topbar/batchUpdate.ts +++ b/next/web/src/App/Admin/Tickets/Topbar/batchUpdate.ts @@ -32,9 +32,9 @@ async function replyTicket(ticketId: string, reply: BatchReply) { async function updateTicket(ticketId: string, data: Omit) { try { await http.patch(`/api/2/tickets/${ticketId}`, { - assignee_id: data.assigneeId, - group_id: data.groupId, - category_id: data.caregoryId, + assigneeId: data.assigneeId, + groupId: data.groupId, + categoryId: data.caregoryId, }); } catch (error) { const msg = (error as AxiosError).response?.data;