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

18 lines
446 B
JavaScript
Raw Normal View History

import { check } from 'meteor/check';
import addUserInfo from '../modifiers/addUserInfo';
export default async 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);
const result = await addUserInfo(userInfo, userId, meetingId);
return result;
}