fix allowTypes defaulting to nothing

This commit is contained in:
Sylver 2024-01-07 21:18:05 +08:00
parent f843214d1f
commit af17626701
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ const schema = strictObject({
allowTypes: z
.union([array(string()), string()])
.optional()
.transform((value) => new Set(value ? expandMime(value) : [])),
.transform((value) => (value ? new Set(expandMime(value)) : null)),
storagePath: string(),
restrictFilesToHost: boolean().default(true),
purge: strictObject({