From fcfa96d97df42d687cf17e6bd8519a005c3f5475 Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Fri, 4 Oct 2024 18:33:01 -0300 Subject: [PATCH] fix: Fixed bug when send message when dont have mentionsEveryOne on payload --- .../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 5c317459..79167858 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -1914,7 +1914,7 @@ export class BaileysStartupService extends ChannelStartupService { throw new NotFoundException('Group not found'); } - if (options.mentionsEveryOne) { + if (options?.mentionsEveryOne) { mentions = group.participants.map((participant) => participant.id); } else if (options.mentioned?.length) { mentions = options.mentioned.map((mention) => {