We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0239638 + d2263af commit 9cda6a2Copy full SHA for 9cda6a2
src/api/integrations/chatbot/chatwoot/utils/chatwoot-import-helper.ts
@@ -181,8 +181,7 @@ class ChatwootImport {
181
let query: string;
182
if (conversationId) {
183
query = 'SELECT source_id FROM messages WHERE source_id = ANY($1) AND conversation_id = $2';
184
-
185
- if (!conversationId) {
+ } else {
186
query = 'SELECT source_id FROM messages WHERE source_id = ANY($1)';
187
}
188
@@ -337,6 +336,7 @@ class ChatwootImport {
337
336
338
this.deleteHistoryMessages(instance);
339
this.deleteRepositoryMessagesCache(instance);
+ return 0;
340
341
342
0 commit comments