mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 01:11:16 +03:00
fix(server): init library scanning on start up (#5951)
This commit is contained in:
@@ -2,6 +2,7 @@ import {
|
|||||||
AuthService,
|
AuthService,
|
||||||
DatabaseService,
|
DatabaseService,
|
||||||
JobService,
|
JobService,
|
||||||
|
LibraryService,
|
||||||
ONE_HOUR,
|
ONE_HOUR,
|
||||||
OpenGraphTags,
|
OpenGraphTags,
|
||||||
ServerInfoService,
|
ServerInfoService,
|
||||||
@@ -44,6 +45,7 @@ export class AppService {
|
|||||||
private authService: AuthService,
|
private authService: AuthService,
|
||||||
private configService: SystemConfigService,
|
private configService: SystemConfigService,
|
||||||
private jobService: JobService,
|
private jobService: JobService,
|
||||||
|
private libraryService: LibraryService,
|
||||||
private serverService: ServerInfoService,
|
private serverService: ServerInfoService,
|
||||||
private sharedLinkService: SharedLinkService,
|
private sharedLinkService: SharedLinkService,
|
||||||
private storageService: StorageService,
|
private storageService: StorageService,
|
||||||
@@ -64,6 +66,7 @@ export class AppService {
|
|||||||
await this.databaseService.init();
|
await this.databaseService.init();
|
||||||
await this.configService.init();
|
await this.configService.init();
|
||||||
this.storageService.init();
|
this.storageService.init();
|
||||||
|
await this.libraryService.init();
|
||||||
await this.serverService.handleVersionCheck();
|
await this.serverService.handleVersionCheck();
|
||||||
this.logger.log(`Feature Flags: ${JSON.stringify(await this.serverService.getFeatures(), null, 2)}`);
|
this.logger.log(`Feature Flags: ${JSON.stringify(await this.serverService.getFeatures(), null, 2)}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user