bigbluebutton-Github/bigbluebutton-html5/imports/api/captions/server/modifiers/clearCaptions.js
2017-01-18 12:53:33 +00:00

11 lines
339 B
JavaScript

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