bigbluebutton-Github/bigbluebutton-html5/imports/api/annotations/server/handlers/whiteboardSend.js
2017-10-11 18:09:35 -07:00

18 lines
442 B
JavaScript

import { check } from 'meteor/check';
import addAnnotation from '../modifiers/addAnnotation';
export default function handleWhiteboardSend({ header, body }, meetingId) {
const userId = header.userId;
const annotation = body.annotation;
check(userId, String);
check(annotation, Object);
const whiteboardId = annotation.wbId;
check(whiteboardId, String);
return addAnnotation(meetingId, whiteboardId, userId, annotation);
}