Skip to content

Commit

Permalink
Merge pull request #301 from gobitfly/implement_dashboard_handlers
Browse files Browse the repository at this point in the history
fix query for validator list in GetValidatorDashboardSummaryChart
  • Loading branch information
peterbitfly authored May 15, 2024
2 parents 86b956e + d1db22f commit 8c110b4
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 8c110b4

Please sign in to comment.