2017-02-23 02:59:47 +08:00
|
|
|
import Logger from '/imports/startup/server/logger';
|
|
|
|
import { check } from 'meteor/check';
|
|
|
|
|
|
|
|
import removeUser from '../modifiers/removeUser';
|
|
|
|
|
|
|
|
export default function handleRemoveUser({ payload }) {
|
|
|
|
const meetingId = payload.meeting_id;
|
2017-02-24 04:16:10 +08:00
|
|
|
const userId = payload.userid || payload.user.userid;
|
2017-02-23 02:59:47 +08:00
|
|
|
|
|
|
|
check(meetingId, String);
|
|
|
|
check(userId, String);
|
|
|
|
|
|
|
|
return removeUser(meetingId, userId);
|
|
|
|
};
|