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

15 lines
409 B
JavaScript
Raw Normal View History

2016-11-12 03:02:46 +08:00
import { check } from 'meteor/check';
import removePresentation from '../modifiers/removePresentation';
export default async function handlePresentationRemove({ body }, meetingId) {
const { podId, presentationId } = body;
2016-11-12 03:02:46 +08:00
check(meetingId, String);
2019-02-12 07:02:32 +08:00
check(podId, String);
2016-11-12 03:02:46 +08:00
check(presentationId, String);
const result = await removePresentation(meetingId, podId, presentationId);
return result;
2017-06-03 03:25:02 +08:00
}