mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-17 19:42:15 +00:00
Merge pull request #5605 from hairlessbear/join-party-quest-invite-fix
Invite a new party member to a quest if the quest is still in the invitation stage (fixes #5598)
This commit is contained in:
commit
a01b2756f2
1 changed files with 1 additions and 0 deletions
|
|
@ -442,6 +442,7 @@ api.join = function(req, res, next) {
|
|||
user.save();
|
||||
// invite new user to pending quest
|
||||
if (group.quest.key && !group.quest.active) {
|
||||
User.update({_id:user._id},{$set: {'party.quest.RSVPNeeded': true, 'party.quest.key': group.quest.key}}).exec();
|
||||
group.quest.members[user._id] = undefined;
|
||||
group.markModified('quest.members');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue