Skip to content

Commit

Permalink
fix: multi redeem tlv2 success response
Browse files Browse the repository at this point in the history
change tlv2 response
  • Loading branch information
clD11 committed Oct 12, 2023
1 parent 2464609 commit 98d424c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion services/skus/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,11 @@ func (s *Service) redeemBlindedCred(ctx context.Context, w http.ResponseWriter,
return handlers.WrapError(err, "Error verifying credentials", http.StatusInternalServerError)
}

return handlers.RenderContent(ctx, &blindedCredVrfResult{ID: cred.TokenPreimage}, w, http.StatusOK)
// TODO(clD11): cleanup after quick fix
if kind == timeLimitedV2 {
return handlers.RenderContent(ctx, &blindedCredVrfResult{ID: cred.TokenPreimage}, w, http.StatusOK)
}
return handlers.RenderContent(ctx, "Credentials successfully verified", w, http.StatusOK)
}

func createOrderItems(req *model.CreateOrderRequestNew) ([]model.OrderItem, error) {
Expand Down

0 comments on commit 98d424c

Please sign in to comment.