remove wrapping body in an object
This commit is contained in:
parent
584f7e4bc8
commit
d9ae121130
@ -1,9 +1,9 @@
|
|||||||
import { check } from 'meteor/check';
|
import { check } from 'meteor/check';
|
||||||
import changeRole from '../modifiers/changeRole';
|
import changeRole from '../modifiers/changeRole';
|
||||||
|
|
||||||
export default function handleChangeRole({ body }, meetingId) {
|
export default function handleChangeRole(payload, meetingId) {
|
||||||
check(body, Object);
|
check(payload.body, Object);
|
||||||
check(meetingId, String);
|
check(meetingId, String);
|
||||||
|
|
||||||
changeRole({ body }, meetingId);
|
changeRole(payload, meetingId);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user