summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Moloney <stephen@stephenmoloney.com>2017-04-06 10:14:54 +0100
committerStephen Moloney <stephen@stephenmoloney.com>2017-04-06 10:14:54 +0100
commit88d3f38d535786f7f9598c0c570d6853a227508b (patch)
tree1dcfeb09b0ebe3f737343dce9b38b38145031a64
parenta314d608a2dd4e05caeb50d76f18ba84f3981c8c (diff)
downloadwekan-88d3f38d535786f7f9598c0c570d6853a227508b.tar.gz
wekan-88d3f38d535786f7f9598c0c570d6853a227508b.tar.bz2
wekan-88d3f38d535786f7f9598c0c570d6853a227508b.zip
dangling commas error
-rw-r--r--models/users.js4
-rw-r--r--server/publications/users.js8
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,
+ },
});
});