bigbluebutton-Github/bigbluebutton-html5/imports/api/shapes/server/modifiers/clearShapes.js
2016-11-18 17:59:11 +00:00

11 lines
325 B
JavaScript
Executable File

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