bigbluebutton-Github/bigbluebutton-html5/imports/api/breakouts/server/modifiers/clearBreakouts.js
2016-11-17 13:20:40 -02:00

13 lines
374 B
JavaScript

import Breakouts from '/imports/api/breakouts';
import Logger from '/imports/startup/server/logger';
export default function clearBreakouts(meetingId) {
if (meetingId) {
return Breakouts.remove({
breakoutMeetingId: meetingId,
}, Logger.info(`Cleared Breakouts (${meetingId})`));
}
return Breakouts.remove({}, Logger.info(`Cleared Breakouts (all)`));
}