2017-09-29 21:42:17 +08:00
|
|
|
import { check } from 'meteor/check';
|
|
|
|
import setCurrentPresentation from '../modifiers/setCurrentPresentation';
|
|
|
|
|
|
|
|
export default function handlePresentationCurrentSet({ body }, meetingId) {
|
|
|
|
check(body, Object);
|
|
|
|
|
2018-04-10 03:48:37 +08:00
|
|
|
const { presentationId, podId } = body;
|
2017-09-29 21:42:17 +08:00
|
|
|
|
|
|
|
check(meetingId, String);
|
|
|
|
check(presentationId, String);
|
2018-04-10 03:48:37 +08:00
|
|
|
check(podId, String);
|
2017-09-29 21:42:17 +08:00
|
|
|
|
2018-04-10 03:48:37 +08:00
|
|
|
return setCurrentPresentation(meetingId, podId, presentationId);
|
2017-09-29 21:42:17 +08:00
|
|
|
}
|