From 6328c641922ec5ea02a67fa4def2ecf4379a2d05 Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Fri, 23 Aug 2024 08:35:00 -0300 Subject: [PATCH] fix: messageType null --- .../integrations/channel/whatsapp/whatsapp.baileys.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts index c8d6607f..8dedc8df 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -1032,7 +1032,7 @@ export class BaileysStartupService extends ChannelStartupService { pushName: received.pushName, message: { ...received.message }, contextInfo: contentMsg?.contextInfo, - messageType: getContentType(received.message), + messageType: getContentType(received.message) || 'unknown', messageTimestamp: received.messageTimestamp as number, instanceId: this.instanceId, source: getDevice(received.key.id),