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 changeRole from '../modifiers/changeRole';
|
||||
|
||||
export default function handleChangeRole({ body }, meetingId) {
|
||||
check(body, Object);
|
||||
export default function handleChangeRole(payload, meetingId) {
|
||||
check(payload.body, Object);
|
||||
check(meetingId, String);
|
||||
|
||||
changeRole({ body }, meetingId);
|
||||
changeRole(payload, meetingId);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user