bigbluebutton-Github/bigbluebutton-html5/imports/api/meetings/server/handlers/meetingCreation.js
2019-01-23 14:13:03 -02:00

12 lines
360 B
JavaScript

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