dangling commas error

reviewable/pr982/r1
Stephen Moloney 8 years ago
parent a314d608a2
commit 88d3f38d53
  1. 4
      models/users.js
  2. 8
      server/publications/users.js

@ -106,8 +106,8 @@ Users.attachSchema(new SimpleSchema({
}, },
isAdmin: { isAdmin: {
type: Boolean, type: Boolean,
optional: true optional: true,
} },
})); }));
// Search a user in the complete server database by its name or username. This // Search a user in the complete server database by its name or username. This

@ -5,15 +5,15 @@ Meteor.publish('user-miniprofile', function(userId) {
fields: { fields: {
'username': 1, 'username': 1,
'profile.fullname': 1, 'profile.fullname': 1,
'profile.avatarUrl': 1 'profile.avatarUrl': 1,
} },
}); });
}); });
Meteor.publish('user-admin', function() { Meteor.publish('user-admin', function() {
return Meteor.users.find(this.userId, { return Meteor.users.find(this.userId, {
fields: { fields: {
isAdmin: 1 isAdmin: 1,
} },
}); });
}); });

Loading…
Cancel
Save