From c9e603c1c20cf4483906725ae88d23faea7ad438 Mon Sep 17 00:00:00 2001 From: Matt Kilgore Date: Tue, 25 Jun 2024 13:30:30 -0400 Subject: [PATCH] fix(backend): assetID incorrectly made 32 bit (#61) --- backend/app/api/handlers/v1/v1_ctrl_assets.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/api/handlers/v1/v1_ctrl_assets.go b/backend/app/api/handlers/v1/v1_ctrl_assets.go index 9e3e8ab57..4b26467c5 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 }