mirror of
https://github.com/immich-app/immich.git
synced 2025-12-20 01:11:46 +03:00
fix(server): access system config before database migration complete (#5912)
This commit is contained in:
@@ -49,8 +49,9 @@ const providers: Provider[] = [
|
||||
ImmichLogger,
|
||||
{
|
||||
provide: INITIAL_SYSTEM_CONFIG,
|
||||
inject: [SystemConfigService],
|
||||
useFactory: async (configService: SystemConfigService) => {
|
||||
inject: [SystemConfigService, DatabaseService],
|
||||
useFactory: async (configService: SystemConfigService, databaseService: DatabaseService) => {
|
||||
await databaseService.init();
|
||||
return configService.getConfig();
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user