Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sasha-bitfly committed Jan 17, 2025
1 parent 429511f commit 7a31f2a
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 @@ -526,7 +526,7 @@ func (d *DataAccessService) GetValidatorDashboardGroupSummary(ctx context.Contex
var totalMissedRewardsEl float64

// Define the `targets` CTE
targets := goqu.
targets := goqu.Dialect("postgres").
From("blocks").
Select(goqu.I("blocks.slot").As("slot")).
Where(
Expand Down Expand Up @@ -580,7 +580,7 @@ func (d *DataAccessService) GetValidatorDashboardGroupSummary(ctx context.Contex
Select(goqu.L("COALESCE(SUM(v), 0)"))

// Generate SQL and arguments
sql, args, err := query.ToSQL()
sql, args, err := query.Prepared(true).ToSQL()
if err != nil {
return 0, fmt.Errorf("failed to generate SQL: %w", err)
}
Expand Down

0 comments on commit 7a31f2a

Please sign in to comment.