bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/polls/server/handlers/userVoted.js
2017-06-28 17:37:45 -03:00

15 lines
371 B
JavaScript

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