feat: return scrip results on ticket create, update frontend types
- POST /tickets now returns { ticket, scrip_results } matching PATCH pattern
- createTicket API function returns UpdateResult instead of Ticket
- Update call site to use data.ticket.id
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -428,7 +428,7 @@ function TicketWorkbenchContent() {
|
||||
setNewSubject("");
|
||||
setNewDescription("");
|
||||
setNewCustomFieldValues({});
|
||||
if (data) router.push(`/tickets/${data.id}`);
|
||||
if (data) router.push(`/tickets/${data.ticket.id}`);
|
||||
};
|
||||
|
||||
if (loading) return <SkeletonWorkbench />;
|
||||
|
||||
Reference in New Issue
Block a user