diff --git a/job/model/blocksignaturemodel.go b/job/model/blocksignaturemodel.go index 38fc785..d053ec8 100644 --- a/job/model/blocksignaturemodel.go +++ b/job/model/blocksignaturemodel.go @@ -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 {