bigbluebutton-Github/bigbluebutton-html5/imports/api/shapes/server/modifiers/removeAllShapesFromSlide.js
2016-05-16 13:12:27 -05:00

19 lines
564 B
JavaScript
Executable File

import Shapes from '/imports/api/shapes';
import { logger } from '/imports/startup/server/logger';
export function removeAllShapesFromSlide(meetingId, whiteboardId) {
logger.info(`removeAllShapesFromSlide__${whiteboardId}`);
if ((meetingId != null) && (whiteboardId != null) && (Shapes.find({
meetingId: meetingId,
whiteboardId: whiteboardId,
}) != null)) {
return Shapes.remove({
meetingId: meetingId,
whiteboardId: whiteboardId,
}, () => {
logger.info('clearing all shapes from slide');
});
}
};