fix: send status in request body instead of query params
This commit is contained in:
@@ -24,9 +24,9 @@ const ticketService = {
|
||||
},
|
||||
|
||||
updateStatus(ticketId: number, status: string, assigneeId?: number) {
|
||||
return apiClient.put<ApiResponse<IssueTicket>>(`/tickets/${ticketId}/status`, null, {
|
||||
params: { status, assigneeId },
|
||||
});
|
||||
const body: Record<string, string> = { status };
|
||||
if (assigneeId) body.assigneeId = String(assigneeId);
|
||||
return apiClient.put<ApiResponse<IssueTicket>>(`/tickets/${ticketId}/status`, body);
|
||||
},
|
||||
|
||||
resolveTicket(ticketId: number, resolutionNote: string) {
|
||||
|
||||
Reference in New Issue
Block a user