bigbluebutton-Github/bigbluebutton-html5/imports/api/slides/server/handlers/slideChange.js

14 lines
414 B
JavaScript
Raw Normal View History

2016-10-21 19:41:17 +08:00
import { check } from 'meteor/check';
import changeCurrentSlide from '../modifiers/changeCurrentSlide';
export default async function handleSlideChange({ body }, meetingId) {
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);
check(podId, String);
2016-10-21 19:41:17 +08:00
const result = await changeCurrentSlide(meetingId, podId, presentationId, pageId);
return result;
2017-06-03 03:25:02 +08:00
}