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

15 lines
366 B
JavaScript

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