Skip to content

Commit

Permalink
fix: api params
Browse files Browse the repository at this point in the history
  • Loading branch information
uffy committed Jul 30, 2024
1 parent 178d73c commit 5112629
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions next/web/src/App/Admin/Tickets/Topbar/batchUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ async function replyTicket(ticketId: string, reply: BatchReply) {
async function updateTicket(ticketId: string, data: Omit<BatchUpdateData, 'reply'>) {
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;
Expand Down

0 comments on commit 5112629

Please sign in to comment.