bigbluebutton-Github/bigbluebutton-html5/imports/api/shapes/server/handlers/whiteboardSend.js

19 lines
467 B
JavaScript
Raw Normal View History

2016-11-19 01:35:28 +08:00
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);
};