Skip to content

Commit babbc10

Browse files
committed
feat: allow grouping w/o explicit aggregates
1 parent e7b3bae commit babbc10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/handlers/logs_handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func handleLogsRequest(c *gin.Context, contractAddress, signature string) {
161161
}
162162

163163
// If aggregates are specified, retrieve them
164-
if len(queryParams.Aggregates) > 0 {
164+
if len(queryParams.Aggregates) > 0 || len(queryParams.GroupBy) > 0 {
165165
qf.Aggregates = queryParams.Aggregates
166166
qf.GroupBy = queryParams.GroupBy
167167

0 commit comments

Comments
 (0)