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

14 lines
373 B
JavaScript

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