mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-12 13:46:51 +00:00
fix: loading items for booking details
This commit is contained in:
parent
9edad056c6
commit
65f921cf5a
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ func (ps *PgStore) CardTotal(from, to time.Time) (float64, error) {
|
||||||
|
|
||||||
func (ps *PgStore) Get(id int) *booking.Booking {
|
func (ps *PgStore) Get(id int) *booking.Booking {
|
||||||
var b booking.Booking
|
var b booking.Booking
|
||||||
ps.db.First(&b, id)
|
ps.db.Preload("Items").First(&b, id)
|
||||||
return &b
|
return &b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue