Skip to content

Commit

Permalink
fix: using correct start epoch for blocks and syncs summary
Browse files Browse the repository at this point in the history
  • Loading branch information
remoterami committed Dec 10, 2024
1 parent 02a7254 commit 2aade25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/pkg/api/data_access/vdb_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -1374,6 +1374,7 @@ func (d *DataAccessService) GetValidatorDashboardSyncSummaryValidators(ctx conte
Select(
goqu.L("epoch_start")).
From(goqu.L(fmt.Sprintf("%s FINAL", clickhouseTable))).
Order(goqu.L("epoch_start").Asc()).
Limit(1)

query, args, err := ds.Prepared(true).ToSQL()
Expand Down Expand Up @@ -1687,6 +1688,7 @@ func (d *DataAccessService) GetValidatorDashboardProposalSummaryValidators(ctx c
goqu.L("epoch_start"),
goqu.L("epoch_end")).
From(goqu.L(fmt.Sprintf("%s FINAL", clickhouseTable))).
Order(goqu.L("epoch_start").Asc()).
Limit(1)

query, args, err := ds.Prepared(true).ToSQL()
Expand Down

0 comments on commit 2aade25

Please sign in to comment.