Skip to content

Commit

Permalink
fix: validator sign stats.
Browse files Browse the repository at this point in the history
  • Loading branch information
romever committed Nov 18, 2024
1 parent 15eb8cb commit 2473b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion job/model/blocksignaturemodel.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (m *customBlockSignatureModel) ValidatorSignStats(ctx context.Context, sign
}
query = query[:len(query)-1] + ")"

query += fmt.Sprintf(" and timestamp >= now() - interval '%d days'", days)
query += fmt.Sprintf(" and timestamp >= now() - interval '%d days' group by day", days)
var resp []*BlockCountDay
err := m.conn.QueryRowCtx(ctx, &resp, query, vars...)
switch err {
Expand Down

0 comments on commit 2473b83

Please sign in to comment.