Skip to content

Commit

Permalink
make threshold optional
Browse files Browse the repository at this point in the history
  • Loading branch information
frontendphil committed Jan 21, 2025
1 parent 5b73f58 commit 14cea53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/schema/src/routeSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ const safeSchema = z.object({
.number()
.or(z.nan())
.nullable()
.transform((value) => (value == null ? NaN : value)),
.transform((value) => (value == null ? NaN : value))
.optional(),
})

const rolesSchema = z.object({
Expand Down

0 comments on commit 14cea53

Please sign in to comment.