Nevyvolávat přenačtení u zavřených podniků
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful

This commit is contained in:
2025-08-11 10:30:42 +02:00
parent 52769fc981
commit 670e45b805

View File

@@ -198,7 +198,7 @@ export async function getRestaurantMenu(restaurant: Restaurant, date?: Date, for
food: [],
};
}
if (forceRefresh || !weekMenu[dayOfWeekIndex][restaurant]?.food?.length) {
if (forceRefresh || (!weekMenu[dayOfWeekIndex][restaurant]?.food?.length && !weekMenu[dayOfWeekIndex][restaurant]?.closed)) {
const firstDay = getFirstWorkDayOfWeek(usedDate);
try {