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

20 lines
441 B
JavaScript
Raw Normal View History

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