mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-21 13:18:53 +00:00
fix(subscriptions): handle future/prebuilt mystery items
This commit is contained in:
parent
fda581e60a
commit
9b719dc144
1 changed files with 1 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ function _findMysteryItems (user, dateMoment) {
|
|||
_.each(shared.content.gear.flat, item => {
|
||||
if (
|
||||
item.klass === 'mystery'
|
||||
&& shared.content.mystery[item.mystery]
|
||||
&& dateMoment.isSameOrAfter(shared.content.mystery[item.mystery].start)
|
||||
&& dateMoment.isSameOrBefore(moment(shared.content.mystery[item.mystery].end).endOf('day'))
|
||||
&& !user.items.gear.owned[item.key]
|
||||
|
|
|
|||
Loading…
Reference in a new issue