bigbluebutton-Github/bigbluebutton-html5/imports/api/users/server/handlers/userJoined.js
2017-06-02 19:25:02 +00: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);
}