Restaurant: fix JSON marshalling
This commit is contained in:
parent
a7591c9868
commit
a270bf12ff
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user