From ca99f85f62b9134ccb64560ed457338898a048d2 Mon Sep 17 00:00:00 2001 From: split Date: Tue, 25 Jun 2024 13:01:54 -0700 Subject: [PATCH] fix invite signup teehee --- src/server/routes/api/v1/account/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {