From d25d296498d0a74413da6209894150622dc24287 Mon Sep 17 00:00:00 2001 From: adriano Date: Wed, 21 Feb 2024 18:10:30 -0300 Subject: [PATCH] feat: Update response message for clarity --- backend/src/controllers/TicketController.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/backend/src/controllers/TicketController.ts b/backend/src/controllers/TicketController.ts index 3c1c930..38b4218 100644 --- a/backend/src/controllers/TicketController.ts +++ b/backend/src/controllers/TicketController.ts @@ -192,7 +192,7 @@ export const remoteTicketCreation = async ( ticketId: ticket.id }); } - } + } if (!ticket) { ticket = await FindOrCreateTicketService( @@ -226,11 +226,13 @@ export const remoteTicketCreation = async ( } console.log( - `REMOTE TICKET CREATION FROM ENDPOINT | STATUS: 500 | MSG: Whatsapp number ${contact_from} disconnected` + `REMOTE TICKET CREATION FROM ENDPOINT | STATUS: 500 | MSG: Whatsapp number ${contact_from} disconnected or it doesn't exist in omnihit` ); return res .status(500) - .json({ msg: `Whatsapp number ${contact_from} disconnected` }); + .json({ + msg: `Whatsapp number ${contact_from} disconnected or it doesn't exist in omnihit` + }); }; export const store = async (req: Request, res: Response): Promise => {