Skip to content

Commit

Permalink
(NOBIDS) Change filter type
Browse files Browse the repository at this point in the history
  • Loading branch information
Eisei24 committed Jun 29, 2023
1 parent f543ec7 commit ff7a157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handlers/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ func DashboardDataValidators(w http.ResponseWriter, r *http.Request) {
for idx := range validatorsByIndex {
validatorsByIndexPubKeys[idx] = validatorsByIndex[idx].PublicKey
}
filter = pq.Array(validatorsByIndexPubKeys)
pubkeyFilter := pq.ByteaArray(validatorsByIndexPubKeys)

validatorsDeposits := []struct {
Pubkey []byte `db:"publickey"`
Expand All @@ -776,7 +776,7 @@ func DashboardDataValidators(w http.ResponseWriter, r *http.Request) {
publickey,
from_address
FROM eth1_deposits
WHERE publickey = ANY($1)`, filter)
WHERE publickey = ANY($1)`, pubkeyFilter)
if err != nil {
logger.WithError(err).WithField("route", r.URL.String()).Errorf("error retrieving validator deposists")
http.Error(w, "Internal server error", http.StatusServiceUnavailable)
Expand Down

0 comments on commit ff7a157

Please sign in to comment.