bigbluebutton-Github/bigbluebutton-html5/imports/api/users/server/handlers/kickUser.js
2017-04-25 14:04:17 -03:00

15 lines
385 B
JavaScript

import Logger from '/imports/startup/server/logger';
import { check } from 'meteor/check';
import kickUser from '../modifiers/kickUser';
export default function handleKickUser({ payload }) {
const meetingId = payload.meeting_id;
const userId = payload.userid || payload.user.userid;
check(meetingId, String);
check(userId, String);
return kickUser(meetingId, userId);
};