fix meta in SignupService

This commit is contained in:
dakkar 2024-10-09 17:04:31 +01:00
parent e6a78d8027
commit c31ee21485

View File

@ -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 => {