From f71c8a50d364be723e798bc0b0e7025974d53a39 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Wed, 8 May 2024 12:37:28 -1000 Subject: [PATCH] fix(api): :bug: Fix incorrect zod types in registration --- server/api/api/v1/accounts/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/api/api/v1/accounts/index.ts b/server/api/api/v1/accounts/index.ts index dffbc941..6e603afa 100644 --- a/server/api/api/v1/accounts/index.ts +++ b/server/api/api/v1/accounts/index.ts @@ -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(), }),