bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/screenshare/server/modifiers/clearBroadcast.js
2017-07-14 11:18:46 -03:00

11 lines
465 B
JavaScript

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