From 101c65138c8766a42ab25704e23406ec19551d2e Mon Sep 17 00:00:00 2001 From: Brett Bender Date: Mon, 12 Feb 2024 19:01:36 -0600 Subject: [PATCH] fix: building joins --- internal/types/shelves.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/types/shelves.go b/internal/types/shelves.go index ecab3d9..10a4829 100644 --- a/internal/types/shelves.go +++ b/internal/types/shelves.go @@ -16,7 +16,7 @@ type ShelfLocation struct { Name string `gorm:"index:unique" json:"name"` RoomNumber string `json:"room_number,omitempty"` Description string `json:"description,omitempty"` - BuildingID uint64 `json:"-"` + BuildingID uint64 `json:"building_id"` Building Building `json:"building,omitempty"` Assets []Asset `json:"assets,omitempty"` CreatedAt time.Time `json:"created_at"`