bigbluebutton-Github/bigbluebutton-html5/imports/api/meetings/server/handlers/meetingCreation.js
2023-03-20 16:24:41 -03:00

12 lines
396 B
JavaScript

import { check } from 'meteor/check';
import addMeeting from '../modifiers/addMeeting';
export default async function handleMeetingCreation({ body }) {
const meeting = body.props;
const durationInSecods = (meeting.durationProps.duration * 60);
meeting.durationProps.timeRemaining = durationInSecods;
check(meeting, Object);
const result = await addMeeting(meeting);
return result;
}