bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/annotations/server/handlers/whiteboardSend.js
2017-08-02 16:52:13 -03: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);
}