mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 10:12:21 +00:00
correctly fetch group.type
This commit is contained in:
parent
0d23ef94da
commit
be27646143
1 changed files with 2 additions and 2 deletions
|
|
@ -417,7 +417,7 @@ api.sessionPartyInvite = function(req,res,next){
|
|||
async.waterfall([
|
||||
function(cb){
|
||||
Group.findOne({_id:req.session.partyInvite.id, members:{$in:[req.session.partyInvite.inviter]}})
|
||||
.select('invites members').exec(cb);
|
||||
.select('invites members type').exec(cb);
|
||||
},
|
||||
function(group, cb){
|
||||
if (!group){
|
||||
|
|
@ -426,7 +426,7 @@ api.sessionPartyInvite = function(req,res,next){
|
|||
return cb();
|
||||
}
|
||||
|
||||
if(group.type === 'guild'){
|
||||
if(group.type == 'guild'){
|
||||
inv.guilds.push(req.session.partyInvite);
|
||||
}else{
|
||||
//req.body.type in 'guild', 'party'
|
||||
|
|
|
|||
Loading…
Reference in a new issue