add routes to get a single user, get members for a group, get members invited to a group

This commit is contained in:
Matteo Pagliazzi
2016-01-12 17:27:06 +01:00
parent baf0179eb7
commit 55db0a4a4b
6 changed files with 169 additions and 4 deletions

View File

@@ -167,7 +167,7 @@ function _closeChal (challenge, broken = {}) {
Tasks.Task.remove({'challenge.id': challenge._id, userId: {$exists: false}}).exec(),
// Set the challenge tag to non-challenge status and remove the challenge from the user's challenges
User.update({
challenges: {$in: [challenge._id]},
challenges: challenge._id,
'tags._id': challenge._id,
}, {
$set: {'tags.$.challenge': false},