2016-10-21 19:41:17 +08:00
|
|
|
import { check } from 'meteor/check';
|
|
|
|
import changeCurrentSlide from '../modifiers/changeCurrentSlide';
|
|
|
|
|
2017-10-12 08:59:35 +08:00
|
|
|
export default function handleSlideChange({ body }, meetingId) {
|
2018-04-10 03:48:37 +08:00
|
|
|
const { pageId, presentationId, podId } = body;
|
2016-10-21 19:41:17 +08:00
|
|
|
|
2017-10-12 08:59:35 +08:00
|
|
|
check(pageId, String);
|
|
|
|
check(presentationId, String);
|
2018-04-10 03:48:37 +08:00
|
|
|
check(podId, String);
|
2016-10-21 19:41:17 +08:00
|
|
|
|
2018-04-10 03:48:37 +08:00
|
|
|
return changeCurrentSlide(meetingId, podId, presentationId, pageId);
|
2017-06-03 03:25:02 +08:00
|
|
|
}
|