bigbluebutton-Github/bigbluebutton-html5/imports/api/1.1/presentations/server/modifiers/clearPresentations.js
Oleksandr Zhurbenko 251bd22738 PR review fixes
2017-09-06 12:36:52 -07:00

11 lines
359 B
JavaScript

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