2016-11-14 19:57:10 +08:00
|
|
|
import Breakouts from '/imports/api/breakouts';
|
|
|
|
import Logger from '/imports/startup/server/logger';
|
2016-11-15 00:12:54 +08:00
|
|
|
import { check } from 'meteor/check';
|
2016-11-29 03:48:02 +08:00
|
|
|
import addBreakout from '../modifiers/addBreakout';
|
2016-11-14 19:57:10 +08:00
|
|
|
|
2016-11-30 00:52:15 +08:00
|
|
|
export default function handleCreateBreakout({ payload }) {
|
2016-11-29 03:48:02 +08:00
|
|
|
const { breakoutMeetingId } = payload;
|
2016-11-15 00:12:54 +08:00
|
|
|
|
|
|
|
check(breakoutMeetingId, String);
|
|
|
|
|
2016-11-29 03:48:02 +08:00
|
|
|
return addBreakout(payload);
|
2016-11-14 19:57:10 +08:00
|
|
|
}
|