mirror of
https://github.com/versia-pub/server.git
synced 2025-12-07 08:48:19 +01:00
fix(api): 🐛 Fix incorrect zod types in registration
This commit is contained in:
parent
52e29e2dee
commit
f71c8a50d3
|
|
@ -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(),
|
||||
}),
|
||||
|
|
|
|||
Loading…
Reference in a new issue