19 lines
467 B
JavaScript
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);
|
||
|
};
|