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

18 lines
442 B
JavaScript
Raw Normal View History

2017-07-27 20:35:55 +08:00
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);
}