Cleanup pinned items that are no longer for purchase

This commit is contained in:
Phillip Thelen
2024-04-08 15:41:51 +02:00
parent 4cdfefd92b
commit d7dc878b1c
5 changed files with 185 additions and 22 deletions

View File

@@ -835,7 +835,7 @@ function makeMatcherClass () {
};
}
export function getScheduleMatchingGroup (type, date) {
export function getAllScheduleMatchingGroups (date) {
const checkedDate = date || new Date();
if (cacheDate !== null && (getDay(checkedDate) !== getDay(cacheDate)
|| getMonth(checkedDate) !== getMonth(cacheDate))) {
@@ -869,7 +869,7 @@ export function getScheduleMatchingGroup (type, date) {
},
};
}
return cachedScheduleMatchers[type];
return matchingGroups[type];
}
export function getCurrentGalaKey (date) {