fix: 30 minutes realtime histogram on overview

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-10-31 12:27:01 +01:00
parent 76b68ba5d7
commit 4d7f3e4473

View File

@@ -124,8 +124,8 @@ export const overviewRouter = createTRPCRouter({
.groupBy(['minute'])
.orderBy('minute', 'ASC')
.fill(
clix.exp('now() - INTERVAL 30 MINUTE'),
clix.exp('now()'),
clix.exp('toStartOfMinute(now() - INTERVAL 30 MINUTE)'),
clix.exp('toStartOfMinute(now())'),
clix.exp('INTERVAL 1 MINUTE'),
);