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
+13-12Lines changed: 13 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -177,25 +177,26 @@ class ChatwootImport {
177
177
returnexistingSourceIdsSet;
178
178
}
179
179
180
-
constformattedSourceIds=sourceIds.map((sourceId)=>`WAID:${sourceId.replace('WAID:','')}`);// Make sure the sourceId is always formatted as WAID:1234567890
181
-
letquery: string;
182
-
if(conversationId){
183
-
query='SELECT source_id FROM messages WHERE source_id = ANY($1) AND conversation_id = $2';
184
-
185
-
if(!conversationId){
186
-
query='SELECT source_id FROM messages WHERE source_id = ANY($1)';
0 commit comments