bigbluebutton-Github/bigbluebutton-html5/imports/api/presentations/server/handlers/presentationCurrentSet.js
2018-04-09 12:48:37 -07:00

15 lines
411 B
JavaScript

import { check } from 'meteor/check';
import setCurrentPresentation from '../modifiers/setCurrentPresentation';
export default function handlePresentationCurrentSet({ body }, meetingId) {
check(body, Object);
const { presentationId, podId } = body;
check(meetingId, String);
check(presentationId, String);
check(podId, String);
return setCurrentPresentation(meetingId, podId, presentationId);
}