bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/users/server/handlers/voiceUpdate.js
2017-06-21 13:54:04 -03:00

14 lines
319 B
JavaScript

import { check } from 'meteor/check';
import updateVoiceUser from '../modifiers/updateVoiceUser';
export default function handleVoiceUpdate({ body, header }) {
const meetingId = header.meetingId;
const user = body;
check(meetingId, String);
check(user, Object);
return updateVoiceUser(meetingId, user);
}