bigbluebutton-Github/bigbluebutton-html5/imports/api/breakouts/server/modifiers/clearBreakouts.js

13 lines
374 B
JavaScript
Raw Normal View History

2016-11-14 19:57:10 +08:00
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)`));
2016-11-14 19:57:10 +08:00
}