bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/annotations/server/handlers/whiteboardUndo.js
2017-08-02 16:52:13 -03:00

14 lines
371 B
JavaScript

import { check } from 'meteor/check';
import removeAnnotation from '../modifiers/removeAnnotation';
export default function handleWhiteboardUndo({ body }, meetingId) {
const whiteboardId = body.whiteboardId;
const shapeId = body.annotationId;
check(whiteboardId, String);
check(shapeId, String);
return removeAnnotation(meetingId, whiteboardId, shapeId);
}