From 178d73c2a692d5b43188aace85ae6482d53a3d51 Mon Sep 17 00:00:00 2001 From: Uffy Date: Tue, 30 Jul 2024 16:54:44 +0800 Subject: [PATCH] fix: api path --- next/web/src/App/Admin/Tickets/Topbar/batchUpdate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/next/web/src/App/Admin/Tickets/Topbar/batchUpdate.ts b/next/web/src/App/Admin/Tickets/Topbar/batchUpdate.ts index 052b4e870..7a41adfb2 100644 --- a/next/web/src/App/Admin/Tickets/Topbar/batchUpdate.ts +++ b/next/web/src/App/Admin/Tickets/Topbar/batchUpdate.ts @@ -20,7 +20,7 @@ export interface BatchUpdateData { async function replyTicket(ticketId: string, reply: BatchReply) { try { - await http.post(`/api/1/tickets/${ticketId}/replies`, { + await http.post(`/api/2/tickets/${ticketId}/replies`, { content: reply.content, }); } catch (error) { @@ -31,7 +31,7 @@ async function replyTicket(ticketId: string, reply: BatchReply) { async function updateTicket(ticketId: string, data: Omit) { try { - await http.patch(`/api/1/tickets/${ticketId}`, { + await http.patch(`/api/2/tickets/${ticketId}`, { assignee_id: data.assigneeId, group_id: data.groupId, category_id: data.caregoryId,