dangling commas error

This commit is contained in:
Stephen Moloney 2017-04-06 10:14:54 +01:00
parent a314d608a2
commit 88d3f38d53
2 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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,
},
});
});