2017-06-19 21:13:35 +08:00
|
|
|
import { check } from 'meteor/check';
|
|
|
|
|
|
|
|
import removeUser from '../modifiers/removeUser';
|
|
|
|
|
2017-06-22 00:54:04 +08:00
|
|
|
export default function handleRemoveUser({ header, body }) {
|
2017-06-27 20:40:28 +08:00
|
|
|
const { meetingId } = header;
|
|
|
|
const { intId } = body;
|
2017-06-19 21:13:35 +08:00
|
|
|
|
|
|
|
check(meetingId, String);
|
2017-06-27 20:40:28 +08:00
|
|
|
check(intId, String);
|
2017-06-19 21:13:35 +08:00
|
|
|
|
2017-06-27 20:40:28 +08:00
|
|
|
return removeUser(meetingId, intId);
|
2017-06-19 21:13:35 +08:00
|
|
|
}
|