diff --git a/src/people/widgetViews/PhasePlannerView.tsx b/src/people/widgetViews/PhasePlannerView.tsx index 919865b2..cbc5b6ee 100644 --- a/src/people/widgetViews/PhasePlannerView.tsx +++ b/src/people/widgetViews/PhasePlannerView.tsx @@ -69,7 +69,7 @@ const PhasePlannerView: React.FC = () => { } }; - socket.onmessage = (event: MessageEvent) => { + socket.onmessage = async (event: MessageEvent) => { try { const data = JSON.parse(event.data); @@ -82,8 +82,6 @@ const PhasePlannerView: React.FC = () => { const ticketMessage = data as TicketMessage; - console.log('Ticket Message', ticketMessage); - switch (ticketMessage.action) { case 'message': console.log('Received ticket message:', ticketMessage.message); @@ -96,8 +94,8 @@ const PhasePlannerView: React.FC = () => { break; case 'process': - console.log('Processing ticket update:', ticketMessage.ticketDetails.uuid); - refreshSingleTicket(ticketMessage.ticketDetails.uuid); + console.log('Processing ticket update:', ticketMessage.ticketDetails.ticketUUID); + await refreshSingleTicket(ticketMessage.ticketDetails.ticketUUID as string); break; } } catch (error) { diff --git a/src/store/interface.ts b/src/store/interface.ts index 5efda206..5dfe6fde 100644 --- a/src/store/interface.ts +++ b/src/store/interface.ts @@ -404,6 +404,7 @@ export type TicketStatus = export interface Ticket { uuid: string; + ticketUUID?: string; feature_uuid: string; phase_uuid: string; name: string;