bigbluebutton-Github/bigbluebutton-html5/imports/api/slides/server/modifiers/clearSlides.js
2016-11-18 12:28:55 +00:00

11 lines
324 B
JavaScript
Executable File

import Slides from '/imports/api/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)'));
};