From c53a96e7574035e5e07474dd046ab35f1ef65a41 Mon Sep 17 00:00:00 2001 From: Willian Coqueiro Date: Tue, 20 May 2025 13:07:28 +0000 Subject: [PATCH] Fix suggestions --- .../channel/whatsapp/whatsapp.baileys.service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts index 2090a96a..2b00fa2d 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -1311,7 +1311,7 @@ export class BaileysStartupService extends ChannelStartupService { data: messageRaw, }); - const remoteJid = received.key.remoteJid; + const {remoteJid} = received.key; const timestamp = msg.messageTimestamp; const fromMe = received.key.fromMe.toString(); const messageKey = `${remoteJid}_${timestamp}_${fromMe}`; @@ -1567,7 +1567,7 @@ export class BaileysStartupService extends ChannelStartupService { if (!key.fromMe && key.remoteJid) { readChatToUpdate[key.remoteJid] = true; - const remoteJid = key.remoteJid; + const {remoteJid} = key; const timestamp = findMessage.messageTimestamp; const fromMe = key.fromMe.toString(); const messageKey = `${remoteJid}_${timestamp}_${fromMe}`; @@ -3828,8 +3828,8 @@ export class BaileysStartupService extends ChannelStartupService { buffer: getBuffer ? buffer : null, }; } catch (error) { - this.logger.info('Error processing media message:'); - this.logger.info(error); + this.logger.error('Error processing media message:'); + this.logger.error(error); throw new BadRequestException(error.toString()); } }