Skip to content

Commit

Permalink
fix(backend): assetID incorrectly made 32 bit (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
tankerkiller125 authored Jun 25, 2024
1 parent 02bc58e commit c9e603c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/api/handlers/v1/v1_ctrl_assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c9e603c

Please sign in to comment.