mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
add routes to get a single user, get members for a group, get members invited to a group
This commit is contained in:
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user