fix timeout coersion
This commit is contained in:
parent
8ca379b6db
commit
9c6932d050
@ -20,7 +20,7 @@ export const AuthRequestSchema = z.object({
|
||||
door: z.string(),
|
||||
key: z.string(),
|
||||
ip: z.string().optional(),
|
||||
timeout: z.number().gt(0, "Timeout cannot be 0").optional(),
|
||||
timeout: z.coerce.number().gt(0, "Timeout cannot be 0").optional(),
|
||||
});
|
||||
|
||||
export type AuthRequest = z.infer<typeof AuthRequestSchema>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user