bigbluebutton-Github/bigbluebutton-html5/imports/api/shapes/server/handlers/whiteboardCleared.js
2016-11-18 17:35:28 +00:00

15 lines
435 B
JavaScript

import Logger from '/imports/startup/server/logger';
import { check } from 'meteor/check';
import clearShapesWhiteboard from '../modifiers/clearShapesWhiteboard';
export default function handleWhiteboardCleared({ payload }) {
const meetingId = payload.meeting_id;
const whiteboardId = payload.whiteboard_id;
check(meetingId, String);
check(whiteboardId, String);
return clearShapesWhiteboard(meetingId, whiteboardId);
};