Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

fix(backend): assetID incorrectly made 32 bit (#61)

Matt Kilgorec9e603c1c20c
diff --git a/backend/app/api/handlers/v1/v1_ctrl_assets.go b/backend/app/api/handlers/v1/v1_ctrl_assets.go
index 9e3e8ab5..4b26467c 100644
--- a/backend/app/api/handlers/v1/v1_ctrl_assets.go
+++ b/backend/app/api/handlers/v1/v1_ctrl_assets.go
@@ -30,7 +30,7 @@ func (ctrl *V1Controller) HandleAssetGet() errchain.HandlerFunc {
assetIDParam := chi.URLParam(r, "id")
assetIDParam = strings.ReplaceAll(assetIDParam, "-", "") // Remove dashes
// Convert the asset ID to an int64
- assetID, err := strconv.ParseInt(assetIDParam, 10, 32)
+ assetID, err := strconv.ParseInt(assetIDParam, 10, 64)
if err != nil {
return err
}