Skip to content

Commit 8697329

Browse files
Update src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts
aplicação de desestruturação de objetos que é uma boa prática do ts Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 58b5561 commit 8697329

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
@@ -1098,7 +1098,7 @@ export class ChatwootService {
10981098
return null;
10991099
}
11001100

1101-
const remoteJid = bodyForRetry.key.remoteJid;
1101+
const {remoteJid} = bodyForRetry.key;
11021102
const cacheKey = `${instance.instanceName}:createConversation-${remoteJid}`;
11031103
await this.cache.delete(cacheKey);
11041104

0 commit comments

Comments
 (0)