bigbluebutton-Github/bigbluebutton-html5/imports/api/screenshare/server/modifiers/clearScreenshare.js
2017-10-11 18:09:35 -07:00

11 lines
469 B
JavaScript

import Logger from '/imports/startup/server/logger';
import Screenshare from '/imports/api/2.0/screenshare';
export default function clearScreenshare(meetingId, screenshareConf) {
if (meetingId && screenshareConf) {
return Screenshare.remove({ meetingId, 'screenshare.screenshareConf': screenshareConf }, Logger.info(`Cleared Screenshare (${meetingId}) , (${screenshareConf})`));
}
return Screenshare.remove({}, Logger.info('Cleared Screenshare (all)'));
}