From a314d608a2dd4e05caeb50d76f18ba84f3981c8c Mon Sep 17 00:00:00 2001 From: Stephen Moloney Date: Thu, 6 Apr 2017 09:25:57 +0100 Subject: [PATCH 1/2] remove tailing commas --- server/publications/users.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/publications/users.js b/server/publications/users.js index 4fd98e13d..198ee039f 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 + } }); }); From 88d3f38d535786f7f9598c0c570d6853a227508b Mon Sep 17 00:00:00 2001 From: Stephen Moloney Date: Thu, 6 Apr 2017 10:14:54 +0100 Subject: [PATCH 2/2] 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 236feb45a..8e2f3bf9a 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 198ee039f..4fd98e13d 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, + }, }); });