From c31ee21485e0fe1405284ce69d3b6987b5d6fcfd Mon Sep 17 00:00:00 2001 From: dakkar Date: Wed, 9 Oct 2024 17:04:31 +0100 Subject: [PATCH] fix meta in SignupService --- packages/backend/src/core/SignupService.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/backend/src/core/SignupService.ts b/packages/backend/src/core/SignupService.ts index ce23ffd626..7250d1c24d 100644 --- a/packages/backend/src/core/SignupService.ts +++ b/packages/backend/src/core/SignupService.ts @@ -58,7 +58,6 @@ export class SignupService { }) { const { username, password, passwordHash, host, reason } = opts; let hash = passwordHash; - const instance = await this.metaService.fetch(true); // Validate username if (!this.userEntityService.validateLocalUsername(username)) { @@ -118,7 +117,7 @@ export class SignupService { let account!: MiUser; let defaultApproval = false; - if (!instance.approvalRequiredForSignup) defaultApproval = true; + if (!this.meta.approvalRequiredForSignup) defaultApproval = true; // Start transaction await this.db.transaction(async transactionalEntityManager => {