remove wrapping body in an object

This commit is contained in:
KDSBrowne 2017-10-10 08:05:16 -07:00
parent 584f7e4bc8
commit d9ae121130

View File

@ -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);
} }