bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/polls/server/handlers/pollStarted.js

15 lines
346 B
JavaScript
Raw Normal View History

2017-06-29 04:37:45 +08:00
import { check } from 'meteor/check';
import addPoll from '../modifiers/addPoll';
export default function pollStarted({ body, header }) {
const { meetingId } = header;
const { userId } = body;
const { poll } = body;
check(meetingId, String);
check(userId, String);
check(poll, Object);
return addPoll(meetingId, userId, poll);
}