diff options
-rw-r--r-- | models/users.js | 4 | ||||
-rw-r--r-- | server/publications/users.js | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/models/users.js b/models/users.js index 236feb45..8e2f3bf9 100644 --- a/models/users.js +++ b/models/users.js @@ -106,8 +106,8 @@ Users.attachSchema(new SimpleSchema({ }, isAdmin: { type: Boolean, - optional: true - } + optional: true, + }, })); // Search a user in the complete server database by its name or username. This diff --git a/server/publications/users.js b/server/publications/users.js index 198ee039..4fd98e13 100644 --- a/server/publications/users.js +++ b/server/publications/users.js @@ -5,15 +5,15 @@ Meteor.publish('user-miniprofile', function(userId) { fields: { 'username': 1, 'profile.fullname': 1, - 'profile.avatarUrl': 1 - } + 'profile.avatarUrl': 1, + }, }); }); Meteor.publish('user-admin', function() { return Meteor.users.find(this.userId, { fields: { - isAdmin: 1 - } + isAdmin: 1, + }, }); }); |