mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(server): make system config core singleton (#4392)
* make system config core singleton * refactor * fix tests * chore: fix tests --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
parent
66ccf298ba
commit
0243570c0b
15 changed files with 33 additions and 19 deletions
|
|
@ -24,7 +24,7 @@ export class SystemConfigService {
|
|||
@Inject(ICommunicationRepository) private communicationRepository: ICommunicationRepository,
|
||||
@Inject(IJobRepository) private jobRepository: IJobRepository,
|
||||
) {
|
||||
this.core = new SystemConfigCore(repository);
|
||||
this.core = SystemConfigCore.create(repository);
|
||||
}
|
||||
|
||||
get config$() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue