15 lines
396 B
JavaScript
15 lines
396 B
JavaScript
import { check } from 'meteor/check';
|
|
import removePoll from '../modifiers/removePoll';
|
|
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);
|
|
|
|
return removePoll(meetingId, pollId);
|
|
}
|