Skip to content
Snippets Groups Projects
Commit c2885fda authored by bobakoftadeh's avatar bobakoftadeh
Browse files

Improve GroupChatMsg remove query

parent 4044d52f
No related branches found
No related tags found
No related merge requests found
......@@ -27,12 +27,12 @@ export default function clearGroupChatMsg(meetingId, chatId) {
}
if (meetingId) {
return GroupChatMsg.remove({ meetingId, chatId: { $eq: 'MAIN-PUBLIC-GROUP-CHAT' } }, () => {
return GroupChatMsg.remove({ meetingId, chatId: { $eq: PUBLIC_GROUP_CHAT_ID } }, () => {
Logger.info(`Cleared GroupChatMsg (${meetingId})`);
});
}
return GroupChatMsg.remove({ chatId: { $eq: 'MAIN-PUBLIC-GROUP-CHAT' } }, () => {
return GroupChatMsg.remove({ chatId: { $eq: PUBLIC_GROUP_CHAT_ID } }, () => {
Logger.info('Cleared GroupChatMsg (all)');
});
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment