remove unused checks
This commit is contained in:
parent
d70bfdb337
commit
9da39339cd
@ -1,14 +1,9 @@
|
||||
import Logger from '/imports/startup/server/logger';
|
||||
import { check } from 'meteor/check';
|
||||
import Users from '/imports/api/2.0/users';
|
||||
|
||||
export default function changeRole({ body }, meetingId) {
|
||||
const { userId, role, changedBy } = body;
|
||||
|
||||
check(userId, String);
|
||||
check(role, String);
|
||||
check(changedBy, String);
|
||||
|
||||
const selector = {
|
||||
meetingId,
|
||||
userId,
|
||||
@ -31,6 +26,8 @@ export default function changeRole({ body }, meetingId) {
|
||||
if (numChanged) {
|
||||
return Logger.info(`Changed user role ${role} id=${userId} meeting=${meetingId} by changedBy=${changedBy}`);
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
return Users.update(selector, modifier, cb);
|
||||
|
Loading…
Reference in New Issue
Block a user