bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/captions/server/modifiers/clearCaptions.js
2017-06-29 17:22:09 -03:00

11 lines
345 B
JavaScript

import Captions from '/imports/api/2.0/captions';
import Logger from '/imports/startup/server/logger';
export default function clearCaptions(meetingId) {
if (meetingId) {
return Captions.remove({ meetingId }, Logger.info(`Cleared Captions2x (${meetingId})`));
}
return Captions.remove({}, Logger.info('Cleared Captions2x (all)'));
}