bigbluebutton-Github/bigbluebutton-html5/imports/api/presentation-pods/server/handlers/setPresenterInPod.js
2018-04-05 14:04:27 -07:00

14 lines
359 B
JavaScript

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);
}