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

18 lines
442 B
JavaScript
Raw Normal View History

2016-11-19 01:35:28 +08:00
import { check } from 'meteor/check';
import addAnnotation from '../modifiers/addAnnotation';
2016-11-19 01:35:28 +08:00
export default function handleWhiteboardSend({ header, body }, meetingId) {
const userId = header.userId;
const annotation = body.annotation;
2016-11-19 01:35:28 +08:00
check(userId, String);
check(annotation, Object);
2016-11-19 01:35:28 +08:00
const whiteboardId = annotation.wbId;
2016-11-19 01:35:28 +08:00
check(whiteboardId, String);
return addAnnotation(meetingId, whiteboardId, userId, annotation);
2017-06-03 03:25:02 +08:00
}