Skip to content

Commit 901d50a

Browse files
committed
corrige estrutura de if/else e bloco try/catch em chatwoot-import-helper.ts EvolutionAPI#1493
1 parent 3b440e5 commit 901d50a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/api/integrations/chatbot/chatwoot/utils/chatwoot-import-helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,7 @@ class ChatwootImport {
181181
let query: string;
182182
if (conversationId) {
183183
query = 'SELECT source_id FROM messages WHERE source_id = ANY($1) AND conversation_id = $2';
184-
185-
if (!conversationId) {
184+
} else {
186185
query = 'SELECT source_id FROM messages WHERE source_id = ANY($1)';
187186
}
188187

@@ -337,6 +336,7 @@ class ChatwootImport {
337336

338337
this.deleteHistoryMessages(instance);
339338
this.deleteRepositoryMessagesCache(instance);
339+
return 0;
340340
}
341341
}
342342

0 commit comments

Comments
 (0)