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 0123b64 commit 178d73c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions next/web/src/App/Admin/Tickets/Topbar/batchUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -31,7 +31,7 @@ async function replyTicket(ticketId: string, reply: BatchReply) {

async function updateTicket(ticketId: string, data: Omit<BatchUpdateData, 'reply'>) {
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,
Expand Down

0 comments on commit 178d73c

Please sign in to comment.