Skip to content

Commit 2e3e752

Browse files
committed
style(whatsapp): fix indentation and remove unnecessary blank lines in BaileysStartupService
1 parent de11e6f commit 2e3e752

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

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

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ export class BaileysStartupService extends ChannelStartupService {
406406
qrcodeTerminal.generate(qr, { small: true }, (qrcode) =>
407407
this.logger.log(
408408
`\n{ instance: ${this.instance.name} pairingCode: ${this.instance.qrcode.pairingCode}, qrcodeCount: ${this.instance.qrcode.count} }\n` +
409-
qrcode,
409+
qrcode,
410410
),
411411
);
412412

@@ -868,7 +868,6 @@ export class BaileysStartupService extends ChannelStartupService {
868868
});
869869
}
870870

871-
872871
if (this.configService.get<Chatwoot>('CHATWOOT').ENABLED && this.localChatwoot?.enabled) {
873872
const instance = { instanceName: this.instance.name, instanceId: this.instance.id };
874873

@@ -920,7 +919,6 @@ export class BaileysStartupService extends ChannelStartupService {
920919
await this.prismaRepository.$transaction(updateTransactions);
921920
}
922921

923-
924922
//const usersContacts = contactsRaw.filter((c) => c.remoteJid.includes('@s.whatsapp'));
925923
},
926924
};
@@ -1001,16 +999,16 @@ export class BaileysStartupService extends ChannelStartupService {
1001999

10021000
const messagesRepository: Set<string> = new Set(
10031001
chatwootImport.getRepositoryMessagesCache(instance) ??
1004-
(
1005-
await this.prismaRepository.message.findMany({
1006-
select: { key: true },
1007-
where: { instanceId: this.instanceId },
1008-
})
1009-
).map((message) => {
1010-
const key = message.key as { id: string };
1011-
1012-
return key.id;
1013-
}),
1002+
(
1003+
await this.prismaRepository.message.findMany({
1004+
select: { key: true },
1005+
where: { instanceId: this.instanceId },
1006+
})
1007+
).map((message) => {
1008+
const key = message.key as { id: string };
1009+
1010+
return key.id;
1011+
}),
10141012
);
10151013

10161014
if (chatwootImport.getRepositoryMessagesCache(instance) === null) {

0 commit comments

Comments
 (0)