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

20 lines
459 B
JavaScript

import { check } from 'meteor/check';
import clearAnnotations from '../modifiers/clearAnnotations';
export default function handleWhiteboardCleared({ body }, meetingId) {
check(body, {
userId: String,
whiteboardId: String,
fullClear: Boolean,
});
const { whiteboardId, fullClear, userId } = body;
if (fullClear) {
return clearAnnotations(meetingId, whiteboardId);
}
return clearAnnotations(meetingId, whiteboardId, userId);
}