You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/api/integrations/chatbot/chatwoot/utils/chatwoot-import-helper.ts
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -180,11 +180,10 @@ class ChatwootImport {
180
180
constformattedSourceIds=sourceIds.map((sourceId)=>`WAID:${sourceId.replace('WAID:','')}`);// Make sure the sourceId is always formatted as WAID:1234567890
181
181
letquery: string;
182
182
if(conversationId){
183
-
query='SELECT source_id FROM messages WHERE source_id = ANY($1)';
184
-
}
183
+
query='SELECT source_id FROM messages WHERE source_id = ANY($1) AND conversation_id = $2';
185
184
186
185
if(!conversationId){
187
-
query='SELECT source_id FROM messages WHERE source_id = ANY($1) AND conversation_id = $2';
186
+
query='SELECT source_id FROM messages WHERE source_id = ANY($1)';
0 commit comments