bigbluebutton-Github/bigbluebutton-html5/imports/api/breakouts/server/modifiers/clearBreakouts.js
2017-10-11 18:09:35 -07:00

15 lines
345 B
JavaScript

import Logger from '/imports/startup/server/logger';
import Breakouts from '/imports/api/2.0/breakouts';
export default function clearBreakouts(breakoutId) {
if (breakoutId) {
const selector = {
breakoutId,
};
return Breakouts.remove(selector);
}
return Breakouts.remove({}, Logger.info('Cleared Breakouts (all)'));
}