Skip to content

Commit 58b5561

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 0935155 commit 58b5561

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ export class ChatwootService {
916916
return null;
917917
}
918918

919-
const remoteJid = bodyForRetry.key.remoteJid;
919+
const {remoteJid} = bodyForRetry.key;
920920
const cacheKey = `${instance.instanceName}:createConversation-${remoteJid}`;
921921
await this.cache.delete(cacheKey);
922922

0 commit comments

Comments
 (0)