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

14 lines
341 B
JavaScript

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