bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/polls/server/handlers/userVoted.js
2017-06-30 11:26:19 -03:00

14 lines
342 B
JavaScript

import { check } from 'meteor/check';
import updateVotes from '../modifiers/updateVotes';
export default function userVoted({ body }, meetingId) {
const { poll } = body;
const { presenterId } = body;
check(meetingId, String);
check(poll, Object);
check(presenterId, String);
return updateVotes(poll, meetingId, presenterId);
}