From 8fdd3aaed10d8d34c520921277f01d0705e70700 Mon Sep 17 00:00:00 2001 From: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> Date: Sat, 23 Dec 2023 21:46:42 +0100 Subject: [PATCH] fix(server): init library scanning on start up (#5951) --- server/src/immich/app.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/immich/app.service.ts b/server/src/immich/app.service.ts index 1ac1dd9ffc..bbd086ba8a 100644 --- a/server/src/immich/app.service.ts +++ b/server/src/immich/app.service.ts @@ -2,6 +2,7 @@ import { AuthService, DatabaseService, JobService, + LibraryService, ONE_HOUR, OpenGraphTags, ServerInfoService, @@ -44,6 +45,7 @@ export class AppService { private authService: AuthService, private configService: SystemConfigService, private jobService: JobService, + private libraryService: LibraryService, private serverService: ServerInfoService, private sharedLinkService: SharedLinkService, private storageService: StorageService, @@ -64,6 +66,7 @@ export class AppService { await this.databaseService.init(); await this.configService.init(); this.storageService.init(); + await this.libraryService.init(); await this.serverService.handleVersionCheck(); this.logger.log(`Feature Flags: ${JSON.stringify(await this.serverService.getFeatures(), null, 2)}`); }