Skip to content

Commit c53a96e

Browse files
committed
Fix suggestions
1 parent a2d8642 commit c53a96e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,7 @@ export class BaileysStartupService extends ChannelStartupService {
13111311
data: messageRaw,
13121312
});
13131313

1314-
const remoteJid = received.key.remoteJid;
1314+
const {remoteJid} = received.key;
13151315
const timestamp = msg.messageTimestamp;
13161316
const fromMe = received.key.fromMe.toString();
13171317
const messageKey = `${remoteJid}_${timestamp}_${fromMe}`;
@@ -1567,7 +1567,7 @@ export class BaileysStartupService extends ChannelStartupService {
15671567
if (!key.fromMe && key.remoteJid) {
15681568
readChatToUpdate[key.remoteJid] = true;
15691569

1570-
const remoteJid = key.remoteJid;
1570+
const {remoteJid} = key;
15711571
const timestamp = findMessage.messageTimestamp;
15721572
const fromMe = key.fromMe.toString();
15731573
const messageKey = `${remoteJid}_${timestamp}_${fromMe}`;
@@ -3828,8 +3828,8 @@ export class BaileysStartupService extends ChannelStartupService {
38283828
buffer: getBuffer ? buffer : null,
38293829
};
38303830
} catch (error) {
3831-
this.logger.info('Error processing media message:');
3832-
this.logger.info(error);
3831+
this.logger.error('Error processing media message:');
3832+
this.logger.error(error);
38333833
throw new BadRequestException(error.toString());
38343834
}
38353835
}

0 commit comments

Comments
 (0)