From 558894fafd07d71bc1d3307f39f085c5499f66ff Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Fri, 19 Apr 2024 20:11:17 -0500 Subject: [PATCH] WIP(shops): cShop reconciled to schedule backend --- website/common/script/content/constants/schedule.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/website/common/script/content/constants/schedule.js b/website/common/script/content/constants/schedule.js index 1bb5a57eb0..b755ca1d50 100644 --- a/website/common/script/content/constants/schedule.js +++ b/website/common/script/content/constants/schedule.js @@ -862,13 +862,13 @@ export function getAllScheduleMatchingGroups (date) { } }); } - return cachedScheduleMatchers; -} - -export function getScheduleMatchingGroup (type, date) { - const matchingGroups = getAllScheduleMatchingGroups(date); - if (!matchingGroups[type]) { + if (!cachedScheduleMatchers[type]) { + let end = moment(checkedDate).date(TYPE_SCHEDULE[type]); + if (end.date() <= checkedDate.date()) { + end = moment(end).add(1, 'months'); + } return { + end: end.toDate(), items: [], match () { return true;