bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/presentations/server/handlers/presentationChange.js

12 lines
309 B
JavaScript
Raw Normal View History

2017-06-29 03:05:50 +08:00
import addPresentation from '../modifiers/addPresentation';
export default function handlePresentationChange({ header, body }) {
const { meetingId } = header;
const { presentation } = body;
check(meetingId, String);
check(presentation, Object);
return addPresentation(meetingId, presentation);
}