From 2aade25fd5879b6e10159f0f2fa9e20c634f9b7b Mon Sep 17 00:00:00 2001 From: remoterami <142154971+remoterami@users.noreply.github.com> Date: Tue, 10 Dec 2024 10:13:45 +0100 Subject: [PATCH] fix: using correct start epoch for blocks and syncs summary --- backend/pkg/api/data_access/vdb_summary.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/pkg/api/data_access/vdb_summary.go b/backend/pkg/api/data_access/vdb_summary.go index c0fa0372c..a345b9768 100644 --- a/backend/pkg/api/data_access/vdb_summary.go +++ b/backend/pkg/api/data_access/vdb_summary.go @@ -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() @@ -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()