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
constformattedSourceIds=sourceIds.map((sourceId)=>`WAID:${sourceId.replace('WAID:','')}`);// Make sure the sourceId is always formatted as WAID:1234567890
181
-
constquery='SELECT source_id FROM messages WHERE source_id = ANY($1)';
181
+
letquery: string;
182
+
if(conversationId){
183
+
query='SELECT source_id FROM messages WHERE source_id = ANY($1)';
184
+
}
185
+
186
+
if(!conversationId){
187
+
query='SELECT source_id FROM messages WHERE source_id = ANY($1) AND conversation_id = $2';
0 commit comments