bigbluebutton-Github/bigbluebutton-html5/imports/api/deskshare/server/modifiers/clearDeskshareCollection.js

15 lines
470 B
JavaScript
Raw Normal View History

2016-05-13 03:50:02 +08:00
import Deskshare from '/imports/api/deskshare';
2016-05-13 01:43:59 +08:00
import { logger } from '/imports/startup/server/logger';
export function clearDeskshareCollection(meetingId) {
2016-05-16 22:14:28 +08:00
if (meetingId != null) {
Deskshare.remove({ meetingId: meetingId }, function () {
logger.info(`cleared Deskshare Collection (meetingId: ${this.meetingId}!)`);
});
} else {
Deskshare.remove({}, function () {
logger.info(`cleared Deskshare Collection (all meetings)!`);
});
}
2016-05-13 01:43:59 +08:00
}