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,