Skip to content

Commit

Permalink
fix: api path
Browse files Browse the repository at this point in the history
  • Loading branch information
uffy committed Jul 30, 2024
1 parent 35b009f commit 0123b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next/web/src/App/Admin/Tickets/Topbar/batchUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async function updateTicket(ticketId: string, data: Omit<BatchUpdateData, 'reply

async function operateTicket(ticketId: string, operation: Operation) {
try {
await http.post(`/api/1/tickets/${ticketId}/operate`, { action: operation });
await http.post(`/api/2/tickets/${ticketId}/operate`, { action: operation });
} catch (error) {
const msg = (error as AxiosError).response?.data;
throw new Error(`operate ticket ${ticketId} failed: ${JSON.stringify(msg)}`);
Expand Down

0 comments on commit 0123b64

Please sign in to comment.