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

12 lines
305 B
JavaScript
Raw Normal View History

2017-06-29 04:37:45 +08:00
import { check } from 'meteor/check';
import setPublishedPoll from '../../../meetings/server/modifiers/setPublishedPoll';
2017-06-29 04:37:45 +08:00
2017-06-30 22:26:19 +08:00
export default function pollPublished({ body }, meetingId) {
2017-06-29 04:37:45 +08:00
const { pollId } = body;
check(meetingId, String);
check(pollId, String);
setPublishedPoll(meetingId, true);
2017-06-29 04:37:45 +08:00
}