Skip to content

Commit

Permalink
fix query for validator list in GetValidatorDashboardSummaryChart
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbitfly committed May 15, 2024
1 parent 86b956e commit d1db22f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/pkg/api/data_access/vdb_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ func (d *DataAccessService) GetValidatorDashboardSummaryChart(dashboardId t.VDBI
SUM(sync_executed)::decimal / NULLIF(SUM(sync_scheduled)::decimal, 0) AS sync_efficiency
from validator_dashboard_data_daily
WHERE day > $1 AND validator_index = ANY($2)
group by 1
) as a ORDER BY epoch_start, group_id;`
err := d.alloyReader.Select(&queryResults, query, cutOffDate, validatorList)
if err != nil {
Expand Down

0 comments on commit d1db22f

Please sign in to comment.