bigbluebutton-Github/bigbluebutton-html5/imports/api/users-infos/server/handlers/userInformation.js
2019-04-10 15:40:40 -04:00

17 lines
409 B
JavaScript

import { check } from 'meteor/check';
import addUserInfo from '../modifiers/addUserInfo';
export default function handleUserInformation({ header, body }) {
check(body, Object);
check(header, Object);
const { userInfo } = body;
const { userId, meetingId } = header;
check(userInfo, Array);
check(userId, String);
check(meetingId, String);
return addUserInfo(userInfo, userId, meetingId);
}