From 4ec01d2e8e6ae03a92895f7f507d0865cd0db28e Mon Sep 17 00:00:00 2001 From: Brett Bender Date: Mon, 12 Feb 2024 18:57:04 -0600 Subject: [PATCH] type mismatch --- internal/types/shelves.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/types/shelves.go b/internal/types/shelves.go index b5dac3a..ecab3d9 100644 --- a/internal/types/shelves.go +++ b/internal/types/shelves.go @@ -29,10 +29,10 @@ type ShelfLocation struct { */ type CreateShelfRequest struct { - Name string `json:"name"` - RoomNumber string `json:"room_number,omitempty"` - Description string `json:"description,omitempty"` - BuildingID uint64 `json:"building_id"` + Name string `json:"name"` + RoomNumber string `json:"room_number,omitempty"` + Description string `json:"description,omitempty"` + BuildingID *uint64 `json:"building_id"` } func (c CreateShelfRequest) Bind(r *http.Request) error { return nil }