diff --git a/api/src/utils/helpers/zod-validation.ts b/api/src/utils/helpers/zod-validation.ts index 53e17fa1..6d803fd7 100644 --- a/api/src/utils/helpers/zod-validation.ts +++ b/api/src/utils/helpers/zod-validation.ts @@ -10,6 +10,6 @@ import { ZodSchema } from 'zod'; export function buildZodSchemaValidator(zodSchema: ZodSchema) { return (data: unknown) => { - return zodSchema.safeParse(data); + return zodSchema.safeParse(data).success; }; }