From b3dae7a68e80438d9b258797da636531355823f0 Mon Sep 17 00:00:00 2001 From: Rafael Souza Date: Thu, 17 Jul 2025 15:40:31 -0300 Subject: [PATCH] Ignore events that are not messages --- .../chatbot/chatwoot/services/chatwoot.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts b/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts index f7ee2249..6e7f9969 100644 --- a/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts +++ b/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts @@ -1898,7 +1898,7 @@ export class ChatwootService { public async eventWhatsapp(event: string, instance: InstanceDto, body: any) { try { - // Ignora eventos que não são mensagens (como EPHEMERAL_SYNC_RESPONSE) + // Ignore events that are not messages (like EPHEMERAL_SYNC_RESPONSE) if (body?.type && body.type !== 'message' && body.type !== 'conversation') { this.logger.verbose(`Ignoring non-message event type: ${body.type}`); return; @@ -2276,7 +2276,7 @@ export class ChatwootService { } if (event === 'messages.edit' || event === 'send.message.update') { - // Ignora eventos que não são mensagens (como EPHEMERAL_SYNC_RESPONSE) + // Ignore events that are not messages (like EPHEMERAL_SYNC_RESPONSE) if (body?.type && body.type !== 'message') { this.logger.verbose(`Ignoring non-message event type: ${body.type}`); return;