11 lines
393 B
JavaScript
11 lines
393 B
JavaScript
import GroupChat from '/imports/api/group-chat';
|
|
import Logger from '/imports/startup/server/logger';
|
|
import clearGroupChatMsg from '/imports/api/group-chat-msg/server/modifiers/clearGroupChatMsg';
|
|
|
|
export default function clearGroupChat(meetingId) {
|
|
clearGroupChatMsg(meetingId);
|
|
return GroupChat.remove({ meetingId }, () => {
|
|
Logger.info(`Cleared GroupChat (${meetingId})`);
|
|
});
|
|
}
|