fix questshop featured items

This commit is contained in:
Phillip Thelen 2024-06-05 10:12:47 +02:00
parent fd5bc8f0b9
commit 6889b65123

View file

@ -23,21 +23,12 @@ const featuredItems = {
},
quests () {
const featured = [];
const bundleKeys = getScheduleMatchingGroup('bundles').items;
bundleKeys.forEach(itemKey => {
featured.push({
type: 'bundles',
path: `bundles.${itemKey}`,
});
});
const petQuestKeys = getScheduleMatchingGroup('petQuests').items;
petQuestKeys.forEach(itemKey => {
if (featured.length < 4) {
featured.push({
type: 'quests',
path: `quests.${itemKey}`,
});
}
});
return featured;
},