Skip to content

Commit

Permalink
Fix: don't throw error in API balance request from node
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Sep 12, 2023
1 parent fb6933b commit 5322b07
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/api/handlers/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/baking-bad/bcdhub/internal/bcd"
"github.com/baking-bad/bcdhub/internal/config"
"github.com/baking-bad/bcdhub/internal/logger"
"github.com/gin-gonic/gin"
)

Expand Down Expand Up @@ -47,8 +48,8 @@ func GetInfo() gin.HandlerFunc {
return
}
balance, err = ctx.Cache.TezosBalance(c, acc.Address, block.Level)
if handleError(c, ctx.Storage, err, 0) {
return
if err != nil {
logger.Err(err)
}
}
c.SecureJSON(http.StatusOK, AccountInfo{
Expand Down

0 comments on commit 5322b07

Please sign in to comment.