bigbluebutton-Github/bigbluebutton-html5/imports/api/annotations/server/handlers/whiteboardUndo.js
2017-10-11 18:09:35 -07: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);
}