2017-09-29 21:42:17 +08:00
|
|
|
import { check } from 'meteor/check';
|
|
|
|
import setCurrentPresentation from '../modifiers/setCurrentPresentation';
|
|
|
|
|
2023-03-15 01:27:52 +08:00
|
|
|
export default async function handlePresentationCurrentSet({ body }, meetingId) {
|
2017-09-29 21:42:17 +08:00
|
|
|
check(body, Object);
|
|
|
|
|
2018-04-10 03:48:37 +08:00
|
|
|
const { presentationId, podId } = body;
|
2017-09-29 21:42:17 +08:00
|
|
|
|
|
|
|
check(meetingId, String);
|
|
|
|
check(presentationId, String);
|
2018-04-10 03:48:37 +08:00
|
|
|
check(podId, String);
|
2017-09-29 21:42:17 +08:00
|
|
|
|
2023-03-15 01:27:52 +08:00
|
|
|
const result = await setCurrentPresentation(meetingId, podId, presentationId);
|
|
|
|
return result;
|
2017-09-29 21:42:17 +08:00
|
|
|
}
|