mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
various fixed
This commit is contained in:
@@ -272,7 +272,7 @@ api.invite = function(req, res, next) {
|
||||
}
|
||||
|
||||
function sendInvite (){
|
||||
if(group.type = 'guild'){
|
||||
if(group.type === 'guild'){
|
||||
if(!invite.invitations.guilds) invite.invitations.guilds = [] //necessary
|
||||
invite.invitations.guilds.push({id: group._id, name: group.name});
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user