Skip to content

Commit b3dae7a

Browse files
committed
Ignore events that are not messages
1 parent 44d4781 commit b3dae7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1898,7 +1898,7 @@ export class ChatwootService {
18981898

18991899
public async eventWhatsapp(event: string, instance: InstanceDto, body: any) {
19001900
try {
1901-
// Ignora eventos que não são mensagens (como EPHEMERAL_SYNC_RESPONSE)
1901+
// Ignore events that are not messages (like EPHEMERAL_SYNC_RESPONSE)
19021902
if (body?.type && body.type !== 'message' && body.type !== 'conversation') {
19031903
this.logger.verbose(`Ignoring non-message event type: ${body.type}`);
19041904
return;
@@ -2276,7 +2276,7 @@ export class ChatwootService {
22762276
}
22772277

22782278
if (event === 'messages.edit' || event === 'send.message.update') {
2279-
// Ignora eventos que não são mensagens (como EPHEMERAL_SYNC_RESPONSE)
2279+
// Ignore events that are not messages (like EPHEMERAL_SYNC_RESPONSE)
22802280
if (body?.type && body.type !== 'message') {
22812281
this.logger.verbose(`Ignoring non-message event type: ${body.type}`);
22822282
return;

0 commit comments

Comments
 (0)