From 94554b061e43d1f63bfa50e5d7a7ab745216c479 Mon Sep 17 00:00:00 2001 From: invis-bitfly <162128378+invis-bitfly@users.noreply.github.com> Date: Thu, 9 Jan 2025 13:37:18 +0100 Subject: [PATCH] fix(api): copy&paste errors --- backend/pkg/api/data_access/vdb_summary.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/pkg/api/data_access/vdb_summary.go b/backend/pkg/api/data_access/vdb_summary.go index 4319a9a95..e93f8959c 100644 --- a/backend/pkg/api/data_access/vdb_summary.go +++ b/backend/pkg/api/data_access/vdb_summary.go @@ -197,7 +197,7 @@ func (d *DataAccessService) GetValidatorDashboardSummary(ctx context.Context, da Select( goqu.SUM(goqu.I("value")).As("el_rewards")). From(goqu.I("execution_rewards_finalized").As("b")). - Where(goqu.L("b.epoch >= ? AND b.epoch <= ? AND b.status = '1'", epochMin, epochMax)). + Where(goqu.L("b.epoch >= ? AND b.epoch <= ?", epochMin, epochMax)). GroupBy(goqu.L("result_group_id")) if len(validators) > 0 { @@ -919,7 +919,7 @@ func (d *DataAccessService) internal_getElClAPR(ctx context.Context, dashboardId elDs := goqu.Dialect("postgres"). Select(goqu.SUM(goqu.I("value"))). - From(goqu.I("execution_rewards_finalized")).As("b") + From(goqu.I("execution_rewards_finalized").As("b")) if len(dashboardId.Validators) > 0 { elDs = elDs.