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

11 lines
379 B
JavaScript

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