mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
groups: fix create & leave
This commit is contained in:
@@ -153,7 +153,7 @@ api.leave = function(req, res, next) {
|
||||
|
||||
Group.update({_id:group._id},{$pull:{members:user._id}}, function(err, saved){
|
||||
if (err) return res.json(500,{err:err});
|
||||
res.send(200, saved);
|
||||
res.send(200, {_id: saved._id});
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user