bigbluebutton-Github/bigbluebutton-html5/imports/api/presentations/server/handlers/presentationDownloadableSet.js
2019-02-15 19:45:42 +00:00

16 lines
491 B
JavaScript

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