email env priority
This commit is contained in:
1 parent
3faff5dc54
commit
60153a88e2
7 files changed
+189
-23
No files matched your search
@@ -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()
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user