Skip to content

Commit afd0e01

Browse files
committed
fix lint
1 parent b3dae7a commit afd0e01

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

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

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -568,10 +568,12 @@ export class ChatwootService {
568568

569569
public async createConversation(instance: InstanceDto, body: any) {
570570
if (!body?.key) {
571-
this.logger.warn(`body.key is null or undefined in createConversation. Full body object: ${JSON.stringify(body)}`);
571+
this.logger.warn(
572+
`body.key is null or undefined in createConversation. Full body object: ${JSON.stringify(body)}`,
573+
);
572574
return null;
573575
}
574-
576+
575577
const isLid = body.key.previousRemoteJid?.includes('@lid') && body.key.senderPn;
576578
const remoteJid = body.key.remoteJid;
577579
const cacheKey = `${instance.instanceName}:createConversation-${remoteJid}`;
@@ -1903,7 +1905,7 @@ export class ChatwootService {
19031905
this.logger.verbose(`Ignoring non-message event type: ${body.type}`);
19041906
return;
19051907
}
1906-
1908+
19071909
const waInstance = this.waMonitor.waInstances[instance.instanceName];
19081910

19091911
if (!waInstance) {
@@ -1953,7 +1955,7 @@ export class ChatwootService {
19531955
this.logger.warn(`body.key is null or undefined. Full body object: ${JSON.stringify(body)}`);
19541956
return;
19551957
}
1956-
1958+
19571959
if (body.key.remoteJid === 'status@broadcast') {
19581960
return;
19591961
}
@@ -2281,12 +2283,14 @@ export class ChatwootService {
22812283
this.logger.verbose(`Ignoring non-message event type: ${body.type}`);
22822284
return;
22832285
}
2284-
2286+
22852287
if (!body?.key?.id) {
2286-
this.logger.warn(`body.key.id is null or undefined in messages.edit. Full body object: ${JSON.stringify(body)}`);
2288+
this.logger.warn(
2289+
`body.key.id is null or undefined in messages.edit. Full body object: ${JSON.stringify(body)}`,
2290+
);
22872291
return;
22882292
}
2289-
2293+
22902294
const editedText = `${
22912295
body?.editedMessage?.conversation || body?.editedMessage?.extendedTextMessage?.text
22922296
}\n\n_\`${i18next.t('cw.message.edited')}.\`_`;

0 commit comments

Comments
 (0)