mirror of
https://github.com/KevinMidboe/immich.git
synced 2026-02-13 19:59:23 +00:00
refactor(server): make access core singleton (#4609)
This commit is contained in:
@@ -31,7 +31,7 @@ export class AlbumService {
|
||||
@Inject(IJobRepository) private jobRepository: IJobRepository,
|
||||
@Inject(IUserRepository) private userRepository: IUserRepository,
|
||||
) {
|
||||
this.access = new AccessCore(accessRepository);
|
||||
this.access = AccessCore.create(accessRepository);
|
||||
}
|
||||
|
||||
async getCount(authUser: AuthUserDto): Promise<AlbumCountResponseDto> {
|
||||
|
||||
Reference in New Issue
Block a user