Skip to content

Commit a24ec97

Browse files
author
Kai Gritun
committed
fix: increase realtime createdAt filter max from 24h to 7d
Increases the REALTIME_MAXIMUM_CREATED_AT_FILTER_AGE_IN_MS default from 24 hours to 7 days. This allows useRealtimeRunsWithTag and similar hooks to correctly show runs older than 24h when clients request createdAt: '1w'. Fixes #3018
1 parent 2feecec commit a24ec97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/webapp/app/env.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ const EnvironmentSchema = z
226226
REALTIME_MAXIMUM_CREATED_AT_FILTER_AGE_IN_MS: z.coerce
227227
.number()
228228
.int()
229-
.default(24 * 60 * 60 * 1000), // 1 day in milliseconds
229+
.default(7 * 24 * 60 * 60 * 1000), // 7 days in milliseconds
230230

231231
PUBSUB_REDIS_HOST: z
232232
.string()

0 commit comments

Comments
 (0)