Restaurant: fix JSON marshalling

This commit is contained in:
zv0n 2023-08-27 17:49:30 +02:00
parent a7591c9868
commit a270bf12ff

View File

@ -66,6 +66,7 @@ func (restaurant *Restaurant) MarshalJSON() ([]byte, error) {
func (restaurant *Restaurant) GetSpecificDayObject(days []int) RestaurantJSON {
obj := RestaurantJSON{
Id: restaurant.id,
Restaurant: restaurant.name,
PermanentMeals: restaurant.permanent,
}