Merge pull request #1493 from oriondesign2015/develop

corrige estrutura de if/else e bloco try/catch em chatwoot-import-helper.ts
This commit is contained in:
Davidson Gomes 2025-05-22 21:57:33 -03:00 committed by GitHub
commit 9cda6a2f99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -181,8 +181,7 @@ class ChatwootImport {
let query: string;
if (conversationId) {
query = 'SELECT source_id FROM messages WHERE source_id = ANY($1) AND conversation_id = $2';
if (!conversationId) {
} else {
query = 'SELECT source_id FROM messages WHERE source_id = ANY($1)';
}
@ -337,6 +336,7 @@ class ChatwootImport {
this.deleteHistoryMessages(instance);
this.deleteRepositoryMessagesCache(instance);
return 0;
}
}