From 24ebebac05e2a4913f7c7c0d78f3976502bb15cf Mon Sep 17 00:00:00 2001 From: bayge Date: Mon, 30 Sep 2024 23:00:24 +0930 Subject: [PATCH] Use the correct import for the errors check --- cmd/graphql.ethereum/graph/schema.resolvers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/graphql.ethereum/graph/schema.resolvers.go b/cmd/graphql.ethereum/graph/schema.resolvers.go index 633df917..d71e50dd 100644 --- a/cmd/graphql.ethereum/graph/schema.resolvers.go +++ b/cmd/graphql.ethereum/graph/schema.resolvers.go @@ -134,7 +134,7 @@ func (r *amountResolver) ValueUsd(ctx context.Context, obj *model.Amount) (strin First(&finalTick). Error switch { - case errors.Is(err, ErrRecordNotFound): + case errors.Is(err, gorm.ErrRecordNotFound): return "0", nil case err != nil: return "", err