2016-11-12 03:02:46 +08:00
|
|
|
import { check } from 'meteor/check';
|
|
|
|
|
|
|
|
import removePresentation from '../modifiers/removePresentation';
|
|
|
|
|
2023-04-01 04:40:41 +08:00
|
|
|
export default async function handlePresentationRemove({ body }, meetingId) {
|
2018-04-10 03:48:37 +08:00
|
|
|
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);
|
|
|
|
|
2023-04-01 04:40:41 +08:00
|
|
|
const result = await removePresentation(meetingId, podId, presentationId);
|
|
|
|
return result;
|
2017-06-03 03:25:02 +08:00
|
|
|
}
|