bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/breakouts/server/modifiers/clearBreakouts.js
2017-08-11 17:17:35 -03: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)'));
}