2018-04-06 03:59:26 +08:00
|
|
|
import { check } from 'meteor/check';
|
|
|
|
import addPresentationPod from '../modifiers/addPresentationPod';
|
|
|
|
|
2023-03-15 03:50:35 +08:00
|
|
|
export default async function handleCreateNewPresentationPod({ body }, meetingId) {
|
2018-04-06 03:59:26 +08:00
|
|
|
check(body, {
|
|
|
|
currentPresenterId: String,
|
|
|
|
podId: String,
|
|
|
|
});
|
|
|
|
check(meetingId, String);
|
|
|
|
|
|
|
|
const { currentPresenterId, podId } = body;
|
|
|
|
|
|
|
|
const pod = {
|
|
|
|
currentPresenterId,
|
|
|
|
podId,
|
|
|
|
};
|
|
|
|
|
2023-03-15 03:50:35 +08:00
|
|
|
await addPresentationPod(meetingId, pod);
|
2018-04-06 03:59:26 +08:00
|
|
|
}
|