2017-06-21 01:17:37 +08:00
|
|
|
import { check } from 'meteor/check';
|
|
|
|
|
|
|
|
import updateVoiceUser from '../modifiers/updateVoiceUser';
|
|
|
|
|
2017-06-22 00:54:04 +08:00
|
|
|
export default function handleVoiceUpdate({ body, header }) {
|
|
|
|
const meetingId = header.meetingId;
|
|
|
|
const user = body;
|
2017-06-21 01:17:37 +08:00
|
|
|
|
|
|
|
check(meetingId, String);
|
|
|
|
check(user, Object);
|
|
|
|
|
2017-06-22 00:54:04 +08:00
|
|
|
return updateVoiceUser(meetingId, user);
|
2017-06-21 01:17:37 +08:00
|
|
|
}
|