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

11 lines
327 B
JavaScript

import Slides from '/imports/api/2.0/slides';
import Logger from '/imports/startup/server/logger';
export default function clearSlides(meetingId) {
if (meetingId) {
return Slides.remove({ meetingId }, Logger.info(`Cleared Slides (${meetingId})`));
}
return Slides.remove({}, Logger.info('Cleared Slides (all)'));
}