refactor(server): make access core singleton (#4609)

This commit is contained in:
Daniel Dietzler 2023-10-23 14:37:51 +02:00 committed by GitHub
parent 36b3521be8
commit 50bc92aac0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 28 additions and 10 deletions

View file

@ -89,7 +89,7 @@ export class AssetService {
@Inject(IStorageRepository) private storageRepository: IStorageRepository,
@Inject(ICommunicationRepository) private communicationRepository: ICommunicationRepository,
) {
this.access = new AccessCore(accessRepository);
this.access = AccessCore.create(accessRepository);
this.configCore = SystemConfigCore.create(configRepository);
this.storageCore = new StorageCore(storageRepository, assetRepository, moveRepository, personRepository);
}