bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/users/server/handlers/userJoined.js
2017-06-26 13:15:28 -03:00

13 lines
295 B
JavaScript

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