Skip to content

Commit 0737c45

Browse files
Update src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent adbe107 commit 0737c45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ export class ChatwootService {
573573
const isLid = body.key.addressingMode === 'lid';
574574
const isGroup = body.key.remoteJid.endsWith('@g.us');
575575
const phoneNumber = isLid && !isGroup ? body.key.remoteJidAlt : body.key.remoteJid;
576-
const remoteJid = body.key.remoteJid;
576+
const {remoteJid} = body.key;
577577
const cacheKey = `${instance.instanceName}:createConversation-${remoteJid}`;
578578
const lockKey = `${instance.instanceName}:lock:createConversation-${remoteJid}`;
579579
const maxWaitTime = 5000; // 5 seconds

0 commit comments

Comments
 (0)