Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pkg/domain/claim/claim_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
"log/slog"
"source-score/pkg/api"
"source-score/pkg/apperrors"
"source-score/pkg/domain/proof"
Expand Down Expand Up @@ -145,6 +146,7 @@ func (svc *claimService) VerifyClaimByUriDigest(ctx context.Context, claimVerifi
func (svc *claimService) VerifyAllClaims(ctx context.Context) error {
claimsProofs, err := svc.proofSvc.GetProofsByClaims(ctx)
if err != nil {
slog.Error("failed to get proofs to claims map", "error", err)
return err
}

Expand All @@ -166,7 +168,8 @@ func (svc *claimService) VerifyAllClaims(ctx context.Context) error {

updatedClaim, err := svc.GetClaimByUriDigest(ctx, claim)
if err != nil {
return err
slog.Error(fmt.Sprintf("failed to get claim for digest: %s", claim), "error", err)
continue
Comment thread
semmet95 marked this conversation as resolved.
}
Comment thread
semmet95 marked this conversation as resolved.

updatedClaim.Checked = true
Expand All @@ -182,6 +185,7 @@ func (svc *claimService) VerifyAllClaims(ctx context.Context) error {
if len(updatedClaims) > 0 {
err = svc.claimRepo.VerifyAllClaims(ctx, updatedClaims)
if err != nil {
slog.Error("failed to update claims for verification", "error", err)
return err
}
}
Expand Down
Loading