mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
WIP(shops): cShop reconciled to schedule backend
This commit is contained in:
committed by
Phillip Thelen
parent
4bbdf27f48
commit
558894fafd
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user