2017-10-07 02:12:33 +08:00
|
|
|
import { check } from 'meteor/check';
|
2017-10-07 00:10:23 +08:00
|
|
|
import changeRole from '../modifiers/changeRole';
|
2017-08-19 02:23:05 +08:00
|
|
|
|
2017-10-06 23:18:27 +08:00
|
|
|
export default function handleChangeRole({ body }, meetingId) {
|
2017-10-07 02:12:33 +08:00
|
|
|
check(body, Object);
|
|
|
|
check(meetingId, String);
|
|
|
|
|
2017-10-07 00:10:23 +08:00
|
|
|
changeRole({ body }, meetingId);
|
2017-08-19 02:23:05 +08:00
|
|
|
}
|