15 lines
372 B
JavaScript
Executable File
15 lines
372 B
JavaScript
Executable File
import { check } from 'meteor/check';
|
|
import addPresentation from '../modifiers/addPresentation';
|
|
|
|
export default function handlePresentationAdded({ body }, meetingId) {
|
|
check(body, Object);
|
|
|
|
const { presentation, podId } = body;
|
|
|
|
check(meetingId, String);
|
|
check(podId, String);
|
|
check(presentation, Object);
|
|
|
|
addPresentation(meetingId, podId, presentation);
|
|
}
|