bigbluebutton-Github/bigbluebutton-html5/imports/api/polls/server/handlers/showResult.js
Gabriel Carvalho de Campes a7335633d4 Refactor Poll API
2016-10-21 11:21:09 -02:00

16 lines
355 B
JavaScript

import { check } from 'meteor/check';
import clearPolls from '../modifiers/clearPolls';
export default function pollStopped({ payload }) {
check(payload, Object);
console.log(payload);
const meetingId = payload.meeting_id;
const pollId = payload.poll.id;
check(meetingId, String);
check(pollId, String);
clearPolls(meetingId, pollId);
}