mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
fix #1669
This commit is contained in:
parent
9454a3a629
commit
567b69a0f1
1 changed files with 2 additions and 1 deletions
|
|
@ -64,7 +64,8 @@ api.list = function(req, res) {
|
|||
Group.findOne({type: 'party', members: {'$in': [user._id]}})
|
||||
.select(groupFields).exec(function(err, party){
|
||||
if (err) return cb(err);
|
||||
cb(null, [party]); // return as an array for consistent ngResource use
|
||||
|
||||
cb(null, (party === null ? [] : [party])); // return as an array for consistent ngResource use
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue