bigbluebutton-Github/bigbluebutton-html5/imports/api/1.1/presentations/server/modifiers/clearPresentations.js

11 lines
359 B
JavaScript
Raw Normal View History

2017-06-19 19:57:32 +08:00
import Presentations from './../../';
2016-11-12 03:02:46 +08:00
import Logger from '/imports/startup/server/logger';
export default function clearPresentations(meetingId) {
if (meetingId) {
2017-06-03 03:25:02 +08:00
return Presentations.remove({ meetingId },
2016-11-12 03:02:46 +08:00
Logger.info(`Cleared Presentations (${meetingId})`));
}
2017-06-03 03:25:02 +08:00
return Presentations.remove({}, Logger.info('Cleared Presentations (all)'));
}