mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
refactor(server): make access core singleton (#4609)
This commit is contained in:
parent
36b3521be8
commit
50bc92aac0
9 changed files with 28 additions and 10 deletions
|
|
@ -43,7 +43,7 @@ export class LibraryService {
|
|||
@Inject(IStorageRepository) private storageRepository: IStorageRepository,
|
||||
@Inject(IUserRepository) private userRepository: IUserRepository,
|
||||
) {
|
||||
this.access = new AccessCore(accessRepository);
|
||||
this.access = AccessCore.create(accessRepository);
|
||||
}
|
||||
|
||||
async getStatistics(authUser: AuthUserDto, id: string): Promise<LibraryStatsResponseDto> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue