From 91991789db9b3fb6ecaba3e72fdf1ead0aa8f2a7 Mon Sep 17 00:00:00 2001 From: Arnaud Delcasse Date: Mon, 5 Dec 2022 19:15:18 +0100 Subject: [PATCH] Avoid saving entire vehicle in database --- storage/bookings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/bookings.go b/storage/bookings.go index ed8a3e3..7c48857 100644 --- a/storage/bookings.go +++ b/storage/bookings.go @@ -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 {