11 lines
465 B
JavaScript
11 lines
465 B
JavaScript
import Logger from '/imports/startup/server/logger';
|
|
import Screenshare from '/imports/api/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)'));
|
|
}
|