Skip to content

Commit

Permalink
fix(api): copy&paste errors
Browse files Browse the repository at this point in the history
  • Loading branch information
invis-bitfly committed Jan 9, 2025
1 parent d97b172 commit 94554b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/pkg/api/data_access/vdb_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 94554b0

Please sign in to comment.