Začištění kódu

This commit is contained in:
2023-08-08 21:45:21 +02:00
parent d41e0e9113
commit e78f9cfd3a
2 changed files with 4 additions and 7 deletions

View File

@@ -68,12 +68,10 @@ export async function getRestaurantMenu(restaurant: Restaurants, date?: Date, mo
storage.setData(today, clientData);
}
if (!clientData?.menus?.[restaurant]) {
if (!clientData.menus[restaurant]) {
clientData.menus[restaurant] = {
lastUpdate: getHumanTime(new Date()),
food: [],
};
}
clientData.menus[restaurant] = {
lastUpdate: getHumanTime(new Date()),
food: [],
};
switch (restaurant) {
case Restaurants.SLADOVNICKA:
clientData.menus[restaurant].food = await getMenuSladovnicka(date, mock);