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';
|
|
|
|
|
2017-09-29 21:50:05 +08:00
|
|
|
export default function handlePresentationAdded({ body }, meetingId) {
|
|
|
|
check(body, Object);
|
|
|
|
|
2017-06-29 03:05:50 +08:00
|
|
|
const { presentation } = body;
|
|
|
|
|
|
|
|
check(meetingId, String);
|
|
|
|
check(presentation, Object);
|
|
|
|
|
|
|
|
return addPresentation(meetingId, presentation);
|
|
|
|
}
|