bigbluebutton-Github/bigbluebutton-html5/imports/api/presentation-pods/server/handlers/setPresenterInPod.js

14 lines
359 B
JavaScript
Raw Normal View History

2018-04-06 05:04:27 +08:00
import { check } from 'meteor/check';
import setPresenterInPod from '../modifiers/setPresenterInPod';
export default function handleSetPresenterInPod({ body }, meetingId) {
check(body, Object);
const { podId, nextPresenterId } = body;
check(podId, String);
check(nextPresenterId, String);
setPresenterInPod(meetingId, podId, nextPresenterId);
}