refactor(server): make user core singleton (#4607)

This commit is contained in:
Daniel Dietzler
2023-10-23 14:38:48 +02:00
committed by GitHub
parent 50bc92aac0
commit c6b4bc883b
4 changed files with 29 additions and 7 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ export class AuthService {
@Inject(IKeyRepository) private keyRepository: IKeyRepository,
) {
this.configCore = SystemConfigCore.create(configRepository);
this.userCore = new UserCore(userRepository, libraryRepository, cryptoRepository);
this.userCore = UserCore.create(cryptoRepository, libraryRepository, userRepository);
custom.setHttpOptionsDefaults({ timeout: 30000 });
}