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

14 lines
371 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 async function handleSetPresenterInPod({ body }, meetingId) {
2018-04-06 05:04:27 +08:00
check(body, Object);
const { podId, nextPresenterId } = body;
check(podId, String);
check(nextPresenterId, String);
await setPresenterInPod(meetingId, podId, nextPresenterId);
2018-04-06 05:04:27 +08:00
}