bigbluebutton-Github/bigbluebutton-html5/imports/api/users/server/handlers/userJoined.js
2017-02-23 18:15:13 +00:00

15 lines
353 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);
};