fix: loading items for booking details

This commit is contained in:
Ruidy 2024-12-10 08:58:57 +01:00
parent 9edad056c6
commit 65f921cf5a
No known key found for this signature in database
GPG key ID: E00F51288CB857CC

View file

@ -79,7 +79,7 @@ func (ps *PgStore) CardTotal(from, to time.Time) (float64, error) {
func (ps *PgStore) Get(id int) *booking.Booking {
var b booking.Booking
ps.db.First(&b, id)
ps.db.Preload("Items").First(&b, id)
return &b
}