Začištění kódu

This commit is contained in:
mates committed 2023-08-08 21:45:21 +02:00
1 parent d41e0e9113
commit e78f9cfd3a
2 files changed
+4 -7

No files matched your search

+4 -6
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);