Skip to content

Commit e16bb0e

Browse files
committed
style(whatsapp): format code for consistency
- Adjusted spacing in destructuring assignments for `remoteJid` in multiple locations to enhance code readability and maintain consistency with coding standards. - Removed unnecessary blank lines to streamline the code structure. This commit focuses on improving the overall style of the `whatsapp.baileys.service.ts` file without altering any functionality.
1 parent fbfa364 commit e16bb0e

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;
1314+
const { remoteJid } = received.key;
13151315
const timestamp = msg.messageTimestamp;
13161316
const fromMe = received.key.fromMe.toString();
13171317
const messageKey = `${remoteJid}_${timestamp}_${fromMe}`;
@@ -1584,7 +1584,7 @@ export class BaileysStartupService extends ChannelStartupService {
15841584
if (!key.fromMe && key.remoteJid) {
15851585
readChatToUpdate[key.remoteJid] = true;
15861586

1587-
const {remoteJid} = key;
1587+
const { remoteJid } = key;
15881588
const timestamp = findMessage.messageTimestamp;
15891589
const fromMe = key.fromMe.toString();
15901590
const messageKey = `${remoteJid}_${timestamp}_${fromMe}`;
@@ -3797,7 +3797,7 @@ export class BaileysStartupService extends ChannelStartupService {
37973797
break;
37983798
}
37993799
}
3800-
3800+
38013801
if (!mediaMessage) {
38023802
throw 'The message is not of the media type';
38033803
}
@@ -3862,7 +3862,7 @@ export class BaileysStartupService extends ChannelStartupService {
38623862
buffer: getBuffer ? buffer : null,
38633863
};
38643864
} catch (error) {
3865-
this.logger.error('Error processing media message:');
3865+
this.logger.error('Error processing media message:');
38663866
this.logger.error(error);
38673867
throw new BadRequestException(error.toString());
38683868
}

0 commit comments

Comments
 (0)