add meetingId to chatIds selector

This commit is contained in:
Anton Georgiev 2021-07-29 12:42:43 +00:00
parent 5477ac7bb2
commit b0b386c690

View File

@ -25,7 +25,7 @@ function groupChatMsg(chatsIds) {
timestamp: { $gte: User.authTokenValidatedTime },
$or: [
{ meetingId, chatId: { $eq: PUBLIC_GROUP_CHAT_ID } },
{ chatId: { $in: chatsIds } },
{ meetingId, chatId: { $in: chatsIds } },
],
};
return GroupChatMsg.find(selector);