bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/polls/server/handlers/pollStarted.js
2017-06-30 11:26:19 -03:00

14 lines
317 B
JavaScript

import { check } from 'meteor/check';
import addPoll from '../modifiers/addPoll';
export default function pollStarted({ body }, meetingId) {
const { userId } = body;
const { poll } = body;
check(meetingId, String);
check(userId, String);
check(poll, Object);
return addPoll(meetingId, userId, poll);
}