Skip to content
Snippets Groups Projects
Unverified Commit 43035dd0 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Remove uncessary $in

parent ca7c328a
No related branches found
No related tags found
No related merge requests found
...@@ -21,11 +21,7 @@ Meteor.methods({ ...@@ -21,11 +21,7 @@ Meteor.methods({
}); });
} }
const adminCount = Meteor.users.find({ const adminCount = Meteor.users.find({roles: 'admin'}).count();
roles: {
$in: ['admin']
}
}).count();
const userIsAdmin = user.roles.indexOf('admin') > -1; const userIsAdmin = user.roles.indexOf('admin') > -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment