mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-15 12:07:43 +00:00
fix(time-travelers): add countdowns
This commit is contained in:
parent
ae8607c0c3
commit
f05888b116
1 changed files with 2 additions and 0 deletions
|
|
@ -381,6 +381,7 @@ shops.getTimeTravelersCategories = function getTimeTravelersCategories (user, la
|
|||
}
|
||||
|
||||
const sets = content.timeTravelerStore(user, new Date());
|
||||
const availabilityMatchers = getScheduleMatchingGroup('timeTravelers');
|
||||
for (const setKey of Object.keys(sets)) {
|
||||
const set = sets[setKey];
|
||||
const category = {
|
||||
|
|
@ -389,6 +390,7 @@ shops.getTimeTravelersCategories = function getTimeTravelersCategories (user, la
|
|||
path: `mystery.${set.key}`,
|
||||
pinType: 'mystery_set',
|
||||
purchaseAll: true,
|
||||
end: Number(set.key) < 300000 ? availabilityMatchers.end : null,
|
||||
};
|
||||
|
||||
category.items = map(set.items, item => ({
|
||||
|
|
|
|||
Loading…
Reference in a new issue