Browse Source

fix: type mismatch

master
Brett Bender 2 years ago
parent
commit
84f2dee985
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      internal/api/shelves.go

+ 2
- 2
internal/api/shelves.go View File

@ -107,7 +107,7 @@ func (s *APIServer) createShelf(w http.ResponseWriter, r *http.Request) error {
Name: data.Name,
RoomNumber: data.RoomNumber,
Description: data.Description,
BuildingID: data.BuildingID,
BuildingID: *data.BuildingID,
}
err := s.db.CreateShelfLocation(shelf)
@ -158,7 +158,7 @@ func (s *APIServer) updateShelf(w http.ResponseWriter, r *http.Request) error {
shelf := &types.ShelfLocation{
ID: eShelf.ID,
Name: data.Name,
BuildingID: data.BuildingID,
BuildingID: *data.BuildingID,
RoomNumber: data.RoomNumber,
}


Loading…
Cancel
Save