bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/users/server/handlers/userJoined.js
2017-06-19 10:13:35 -03:00

15 lines
352 B
JavaScript

import { check } from 'meteor/check';
import Logger from '/imports/startup/server/logger';
import addUser from '../modifiers/addUser';
export default function handleUserJoined({ payload }) {
const meetingId = payload.meeting_id;
const user = payload.user;
check(meetingId, String);
check(user, Object);
return addUser(meetingId, user);
}