bigbluebutton-Github/bigbluebutton-html5/imports/api/presentation-pods/server/handlers/createNewPresentationPod.js
2018-04-05 12:59:26 -07:00

20 lines
429 B
JavaScript

import { check } from 'meteor/check';
import addPresentationPod from '../modifiers/addPresentationPod';
export default function handleCreateNewPresentationPod({ body }, meetingId) {
check(body, {
currentPresenterId: String,
podId: String,
});
check(meetingId, String);
const { currentPresenterId, podId } = body;
const pod = {
currentPresenterId,
podId,
};
addPresentationPod(meetingId, pod);
}