2019-02-16 03:45:42 +08:00
|
|
|
import { check } from 'meteor/check';
|
|
|
|
import setPresentationDownloadable from '../modifiers/setPresentationDownloadable';
|
|
|
|
|
2023-03-15 01:27:52 +08:00
|
|
|
export default async function handlePresentationDownloadableSet({ body }, meetingId) {
|
2019-02-16 03:45:42 +08:00
|
|
|
check(body, Object);
|
|
|
|
|
2023-08-10 23:18:59 +08:00
|
|
|
const {
|
|
|
|
presentationId, podId, downloadable, downloadableExtension,
|
|
|
|
} = body;
|
2019-02-16 03:45:42 +08:00
|
|
|
|
|
|
|
check(meetingId, String);
|
|
|
|
check(presentationId, String);
|
|
|
|
check(podId, String);
|
|
|
|
check(downloadable, Boolean);
|
2023-08-10 23:18:59 +08:00
|
|
|
check(downloadableExtension, String);
|
2019-02-16 03:45:42 +08:00
|
|
|
|
2023-08-10 23:18:59 +08:00
|
|
|
const result = await setPresentationDownloadable(meetingId, podId, presentationId, downloadable,
|
|
|
|
downloadableExtension);
|
2023-03-15 01:27:52 +08:00
|
|
|
return result;
|
2019-02-16 03:45:42 +08:00
|
|
|
}
|