Skip to content

Commit

Permalink
(BIDS-1846) handlers: fix validator-query
Browse files Browse the repository at this point in the history
  • Loading branch information
guybrush committed Oct 4, 2023
1 parent f4c6520 commit 11503b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ func Validator(w http.ResponseWriter, r *http.Request) {
LEFT JOIN validator_names ON validators.pubkey = validator_names.publickey
LEFT JOIN validator_pool ON validators.pubkey = validator_pool.publickey
LEFT JOIN validator_performance ON validators.validatorindex = validator_performance.validatorindex
LEFT JOIN (SELECT MAX(validatorindex)+1 FROM validator_performance WHERE validatorindex >= 0) validator_performance_count(total_count) ON true
LEFT JOIN (SELECT MAX(validatorindex)+1 FROM validator_performance WHERE validatorindex < 2147483647 AND validatorindex >= 0) validator_performance_count(total_count) ON true
WHERE validators.validatorindex = $1`, index)

if err == sql.ErrNoRows {
Expand Down

0 comments on commit 11503b4

Please sign in to comment.