Skip to content

Commit

Permalink
fix allowTypes defaulting to nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
sylv committed Jan 7, 2024
1 parent b035272 commit 3af4f93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 3af4f93

Please sign in to comment.