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

14 lines
339 B
JavaScript

import { check } from 'meteor/check';
import removeUser from '../modifiers/removeUser';
export default function handleRemoveUser({ payload }) {
const meetingId = payload.meeting_id;
const userId = payload.userid || payload.user.userid;
check(meetingId, String);
check(userId, String);
return removeUser(meetingId, userId);
}