bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/annotations/server/modifiers/clearAnnotations.js
2017-08-02 16:52:13 -03:00

11 lines
362 B
JavaScript
Executable File

import Annotations from '/imports/api/2.0/annotations';
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)'));
}