bigbluebutton-Github/bigbluebutton-html5/imports/api/polls/server/handlers/pollStarted.js
2017-10-11 18:09:35 -07: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);
}