bigbluebutton-Github/bigbluebutton-html5/imports/api/meetings/server/handlers/meetingCreation.js

12 lines
396 B
JavaScript
Raw Normal View History

2016-10-22 00:27:47 +08:00
import { check } from 'meteor/check';
import addMeeting from '../modifiers/addMeeting';
export default async function handleMeetingCreation({ body }) {
2017-10-12 06:17:42 +08:00
const meeting = body.props;
const durationInSecods = (meeting.durationProps.duration * 60);
meeting.durationProps.timeRemaining = durationInSecods;
2017-10-12 06:17:42 +08:00
check(meeting, Object);
const result = await addMeeting(meeting);
return result;
2017-06-03 03:25:02 +08:00
}