bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/annotation/server/modifiers/clearAnnotations.js

11 lines
361 B
JavaScript
Raw Normal View History

2017-07-27 20:35:55 +08:00
import Annotations from '/imports/api/2.0/annotation';
import Logger from '/imports/startup/server/logger';
export default function clearAnnotations(meetingId) {
if (meetingId) {
return Annotations.remove({ meetingId }, Logger.info(`Cleared Annotations (${meetingId})`));
}
return Annotations.remove({}, Logger.info('Cleared Annotations (all)'));
}