WIP(shops): cShop reconciled to schedule backend

This commit is contained in:
Sabe Jones
2024-04-19 20:11:17 -05:00
committed by Phillip Thelen
parent 4bbdf27f48
commit 558894fafd

View File

@@ -862,13 +862,13 @@ export function getAllScheduleMatchingGroups (date) {
} }
}); });
} }
return cachedScheduleMatchers; if (!cachedScheduleMatchers[type]) {
} let end = moment(checkedDate).date(TYPE_SCHEDULE[type]);
if (end.date() <= checkedDate.date()) {
export function getScheduleMatchingGroup (type, date) { end = moment(end).add(1, 'months');
const matchingGroups = getAllScheduleMatchingGroups(date); }
if (!matchingGroups[type]) {
return { return {
end: end.toDate(),
items: [], items: [],
match () { match () {
return true; return true;