bigbluebutton-Github/bigbluebutton-html5/imports/api/shapes/server/modifiers/removeAllShapesFromSlide.js

19 lines
564 B
JavaScript
Raw Normal View History

2016-05-17 02:05:44 +08:00
import Shapes from '/imports/api/shapes';
2016-05-13 01:43:59 +08:00
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');
});
}
};