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

16 lines
355 B
JavaScript
Raw Normal View History

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