From 1c7b2129af08677c82198d02b11148b1904caa8e Mon Sep 17 00:00:00 2001 From: Claudemir Todo Bom Date: Sun, 15 Dec 2024 11:30:53 -0300 Subject: [PATCH] avoid npe if transfermessage is null --- backend/src/services/TicketServices/UpdateTicketService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/services/TicketServices/UpdateTicketService.ts b/backend/src/services/TicketServices/UpdateTicketService.ts index 5333584..2d3048b 100644 --- a/backend/src/services/TicketServices/UpdateTicketService.ts +++ b/backend/src/services/TicketServices/UpdateTicketService.ts @@ -206,7 +206,7 @@ const UpdateTicketService = async ({ ); if (!ticket.isGroup) { - if (transferMessage) { + if (transferMessage?.trim()) { const queueChangedMessage = await wbot.sendMessage( `${ticket.contact.number}@${ ticket.isGroup ? "g.us" : "s.whatsapp.net"