bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/users/server/handlers/userJoined.js

13 lines
287 B
JavaScript

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