Skip to content

Commit

Permalink
fix: use nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
frectonz committed Jun 13, 2024
1 parent 3cd1c8c commit 90a0492
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions ui/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ const overview = z.object({
file_name: z.string(),
sqlite_version: z.string(),
file_size: z.string(),
created: z.optional(
z
.string()
.datetime()
.transform((x) => new Date(x)),
),
created: z
.string()
.datetime()
.transform((x) => new Date(x))
.nullable(),
modified: z
.string()
.datetime()
Expand Down

0 comments on commit 90a0492

Please sign in to comment.