mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-31 19:20:25 +00:00
return 204 on group.update
This commit is contained in:
parent
36e45a36a2
commit
5ebab59780
1 changed files with 3 additions and 7 deletions
|
|
@ -175,14 +175,10 @@ api.update = function(req, res, next) {
|
|||
group[attr] = req.body[attr];
|
||||
});
|
||||
|
||||
async.series([
|
||||
function(cb){group.save(cb);},
|
||||
function(cb){
|
||||
populateQuery(group.type, Group.findById(group._id)).exec(cb);
|
||||
}
|
||||
], function(err, results){
|
||||
group.save(function(err, saved){
|
||||
if (err) return res.json(500,{err:err});
|
||||
res.json(results[1]);
|
||||
|
||||
res.send(204);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue