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

19 lines
467 B
JavaScript

import Logger from '/imports/startup/server/logger';
import { check } from 'meteor/check';
import removePresentation from '../modifiers/removePresentation';
export default function handleWhiteboardSend({ payload }) {
const meetingId = payload.meeting_id;
const shape = payload.shape;
check(meetingId, String);
check(shape, Object);
const whiteboardId = shape.wb_id;
check(whiteboardId, String);
return addShape(meetingId, whiteboardId, shape);
};