From 88d3f38d535786f7f9598c0c570d6853a227508b Mon Sep 17 00:00:00 2001 From: Stephen Moloney Date: Thu, 6 Apr 2017 10:14:54 +0100 Subject: dangling commas error --- models/users.js | 4 ++-- 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, + }, }); }); -- cgit v1.2.3-1-g7c22