From 4858e0160594efcb7bf4cb6e6428a3e6c68cc6f8 Mon Sep 17 00:00:00 2001 From: Claudemir Todo Bom Date: Tue, 21 Jan 2025 15:52:49 +0000 Subject: [PATCH] fix saving messages sent directly by whatsapp device --- backend/src/helpers/Mustache.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/src/helpers/Mustache.ts b/backend/src/helpers/Mustache.ts index 618c314d..a8e12757 100644 --- a/backend/src/helpers/Mustache.ts +++ b/backend/src/helpers/Mustache.ts @@ -43,10 +43,7 @@ export function formatBody( ms = "Boa madrugada"; } - const setor = - ticket?.queueId === undefined || ticket.queueId === null - ? "" - : ticket.queue.name; + const setor = ticket?.queue?.name || ""; const usuario = ticket?.userId === undefined || ticket.userId === null