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

17 lines
407 B
JavaScript
Raw Normal View History

2016-10-21 21:21:09 +08:00
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);
2016-10-21 21:21:09 +08:00
}