bigbluebutton-Github/bigbluebutton-html5/imports/api/polls/server/handlers/pollPublished.js
2023-11-28 11:18:56 -03:00

12 lines
305 B
JavaScript

import { check } from 'meteor/check';
import setPublishedPoll from '../../../meetings/server/modifiers/setPublishedPoll';
export default function pollPublished({ body }, meetingId) {
const { pollId } = body;
check(meetingId, String);
check(pollId, String);
setPublishedPoll(meetingId, true);
}