Avoid saving entire vehicle in database

This commit is contained in:
Arnaud Delcasse 2022-12-05 19:15:18 +01:00
parent cecdcb20e1
commit 91991789db
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ type Booking struct {
Data map[string]any `json:"data"` Data map[string]any `json:"data"`
Deleted bool Deleted bool
Vehicle Vehicle Vehicle Vehicle `json:"vehicle" bson:"-"`
} }
func (b Booking) Status() int { func (b Booking) Status() int {