2017-09-29 21:50:05 +08:00
|
|
|
import { check } from 'meteor/check';
|
2017-06-29 03:05:50 +08:00
|
|
|
import addPresentation from '../modifiers/addPresentation';
|
|
|
|
|
2023-03-15 01:27:52 +08:00
|
|
|
export default async function handlePresentationAdded({ body }, meetingId) {
|
2017-09-29 21:50:05 +08:00
|
|
|
check(body, Object);
|
|
|
|
|
2018-04-10 03:48:37 +08:00
|
|
|
const { presentation, podId } = body;
|
2017-06-29 03:05:50 +08:00
|
|
|
|
|
|
|
check(meetingId, String);
|
2018-04-10 03:48:37 +08:00
|
|
|
check(podId, String);
|
2017-06-29 03:05:50 +08:00
|
|
|
check(presentation, Object);
|
|
|
|
|
2023-03-15 01:27:52 +08:00
|
|
|
await addPresentation(meetingId, podId, presentation);
|
2017-06-29 03:05:50 +08:00
|
|
|
}
|