fix(api): 🐛 Fix incorrect zod types in registration

This commit is contained in:
Jesse Wierzbinski 2024-05-08 12:37:28 -10:00
parent 52e29e2dee
commit f71c8a50d3
No known key found for this signature in database

View file

@ -30,7 +30,8 @@ export const schemas = {
password: z.string(),
agreement: z
.string()
.transform((v) => ["true", "1", "on"].includes(v.toLowerCase())),
.transform((v) => ["true", "1", "on"].includes(v.toLowerCase()))
.or(z.boolean()),
locale: z.string(),
reason: z.string(),
}),