email env priority

This commit is contained in:
Alex Holliday committed 2025-11-20 19:27:22 +00:00
1 parent 3faff5dc54
commit 60153a88e2
7 files changed
+189 -23

No files matched your search

+2 -1
View File
@@ -83,7 +83,8 @@ const durationSchemaInfra = z
const optionalString = <T extends z.ZodTypeAny>(schema: T) =>
z.preprocess(
(val) => (val === "" || val === null ? undefined : val),
(val) =>
val === "" || val === null || val === undefined ? undefined : val,
schema.optional()
);