bigbluebutton-Github/bigbluebutton-html5/imports/api/polls/server/handlers/pollStarted.js
2016-10-21 16:56:42 -02:00

17 lines
407 B
JavaScript

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