bigbluebutton-Github/bigbluebutton-html5/imports/api/slides/server/modifiers/clearSlidesCollection.js
2016-10-21 11:41:17 +00:00

11 lines
357 B
JavaScript
Executable File

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