remove unused checks

This commit is contained in:
KDSBrowne 2017-10-06 10:56:56 -07:00
parent d70bfdb337
commit 9da39339cd

View File

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