bigbluebutton-Github/bigbluebutton-html5/imports/api/users-infos/server/handlers/userInformation.js

17 lines
409 B
JavaScript
Raw Normal View History

import { check } from 'meteor/check';
import addUserInfo from '../modifiers/addUserInfo';
2019-04-11 03:40:40 +08:00
export default function handleUserInformation({ header, body }) {
check(body, Object);
2019-04-11 03:40:40 +08:00
check(header, Object);
2019-04-11 03:40:40 +08:00
const { userInfo } = body;
const { userId, meetingId } = header;
check(userInfo, Array);
check(userId, String);
check(meetingId, String);
return addUserInfo(userInfo, userId, meetingId);
}