diff --git a/src/server/routes/api/v1/account/index.ts b/src/server/routes/api/v1/account/index.ts index 5d78b7b..506c974 100644 --- a/src/server/routes/api/v1/account/index.ts +++ b/src/server/routes/api/v1/account/index.ts @@ -264,7 +264,7 @@ export default function (files: Files) { password: AccountSchemas.StringPassword, invite: z.string().max(6) }).omit( - Configuration.accounts.requiredForUpload + !Configuration.accounts.requiredForUpload ? { invite: true } : {} )), async (ctx) => {