Skip to content

Commit 9cda6a2

Browse files
Merge pull request #1493 from oriondesign2015/develop
corrige estrutura de if/else e bloco try/catch em chatwoot-import-helper.ts
2 parents 0239638 + d2263af commit 9cda6a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)