2017-02-23 02:59:47 +08:00
|
|
|
import { check } from 'meteor/check';
|
|
|
|
|
|
|
|
import removeUser from '../modifiers/removeUser';
|
|
|
|
|
2023-03-15 21:18:31 +08:00
|
|
|
export default async function handleRemoveUser({ body }, meetingId) {
|
2017-10-12 09:02:23 +08:00
|
|
|
const { intId } = body;
|
2017-02-23 02:59:47 +08:00
|
|
|
|
|
|
|
check(meetingId, String);
|
2017-10-12 09:02:23 +08:00
|
|
|
check(intId, String);
|
2017-02-23 02:59:47 +08:00
|
|
|
|
2023-03-15 21:18:31 +08:00
|
|
|
const result = await removeUser(body, meetingId);
|
|
|
|
return result;
|
2017-06-03 03:25:02 +08:00
|
|
|
}
|