fix(database): filter dates evaluated at module load time

This commit is contained in:
depado
2025-12-18 15:21:04 +01:00
committed by Owen Schwartz
parent e309a125f5
commit 16653dd524
4 changed files with 4 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ export const queryAccessAuditLogsQuery = z.object({
})
.transform((val) => Math.floor(new Date(val).getTime() / 1000))
.optional()
.prefault(new Date().toISOString())
.prefault(() => new Date().toISOString())
.openapi({
type: "string",
format: "date-time",

View File

@@ -48,7 +48,7 @@ export const queryActionAuditLogsQuery = z.object({
})
.transform((val) => Math.floor(new Date(val).getTime() / 1000))
.optional()
.prefault(new Date().toISOString())
.prefault(() => new Date().toISOString())
.openapi({
type: "string",
format: "date-time",