Skip to content

Commit 4584892

Browse files
committed
fix: validation issues edit user
1 parent 2ba1da1 commit 4584892

File tree

1 file changed

+3
-3
lines changed
  • src/server/routes/api/users/[id]

1 file changed

+3
-3
lines changed

src/server/routes/api/users/[id]/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ export default typedPlugin(
5555
quota: z
5656
.object({
5757
filesType: z.enum(['BY_BYTES', 'BY_FILES', 'NONE']).optional(),
58-
maxFiles: z.number().min(1).optional(),
59-
maxBytes: z.string().min(1).optional(),
60-
maxUrls: z.number().min(1).optional(),
58+
maxFiles: z.number().min(1).optional().nullable(),
59+
maxBytes: z.string().min(1).optional().nullable(),
60+
maxUrls: z.number().min(1).optional().nullable(),
6161
})
6262
.optional(),
6363
}),

0 commit comments

Comments
 (0)