Skip to content

Commit 4d7f3e4

Browse files
committed
fix: 30 minutes realtime histogram on overview
1 parent 76b68ba commit 4d7f3e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/trpc/src/routers/overview.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ export const overviewRouter = createTRPCRouter({
124124
.groupBy(['minute'])
125125
.orderBy('minute', 'ASC')
126126
.fill(
127-
clix.exp('now() - INTERVAL 30 MINUTE'),
128-
clix.exp('now()'),
127+
clix.exp('toStartOfMinute(now() - INTERVAL 30 MINUTE)'),
128+
clix.exp('toStartOfMinute(now())'),
129129
clix.exp('INTERVAL 1 MINUTE'),
130130
);
131131

0 commit comments

Comments
 (0)