mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
removeMember return whole group
This commit is contained in:
parent
23c3bcfa32
commit
c444feb29c
1 changed files with 1 additions and 1 deletions
|
|
@ -321,7 +321,7 @@ api.removeMember = function(req, res, next){
|
|||
if(_.contains(group.members, uuid)){
|
||||
Group.update({_id:group._id},{$pull:{members:uuid}}, function(err, saved){
|
||||
if (err) return res.json(500,{err:err});
|
||||
return res.send(204);
|
||||
return res.json(saved);
|
||||
});
|
||||
}else{
|
||||
return res.json(400, {err: "User not found among group's members!"});
|
||||
|
|
|
|||
Loading…
Reference in a new issue