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: {
type: Boolean,
optional: true
}
optional: true,
},
}));
// 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: {
'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,
},
});
});

Loading…
Cancel
Save