mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-18 03:52:54 +00:00
Merge pull request #5523 from hairlessbear/update_isOnQuest_logic
Removed user.party.quest.key checks from isOnQuest and added check for user ID in quest members
This commit is contained in:
commit
cb9f5bcff3
1 changed files with 1 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ GroupSchema.methods.finishQuest = function(quest, cb) {
|
|||
}
|
||||
|
||||
function isOnQuest(user,progress,group){
|
||||
return group && progress && user.party.quest.key && group.quest && user.party.quest.key == group.quest.key && group.quest.active;
|
||||
return group && progress && group.quest && group.quest.active && group.quest.members[user._id] === true;
|
||||
}
|
||||
|
||||
GroupSchema.statics.collectQuest = function(user, progress, cb) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue