Avoid saving entire vehicle in database
This commit is contained in:
parent
cecdcb20e1
commit
91991789db
|
@ -19,7 +19,7 @@ type Booking struct {
|
|||
Data map[string]any `json:"data"`
|
||||
|
||||
Deleted bool
|
||||
Vehicle Vehicle
|
||||
Vehicle Vehicle `json:"vehicle" bson:"-"`
|
||||
}
|
||||
|
||||
func (b Booking) Status() int {
|
||||
|
|
Loading…
Reference in New Issue