refactor(server): simplify config init process (#5702)
This commit is contained in:
@@ -25,5 +25,3 @@ export const supportedPresetTokens = [
|
||||
'{{y}}/{{y}}-{{WW}}/{{assetId}}',
|
||||
'{{album}}/{{filename}}',
|
||||
];
|
||||
|
||||
export const INITIAL_SYSTEM_CONFIG = 'INITIAL_SYSTEM_CONFIG';
|
||||
|
||||
@@ -42,7 +42,7 @@ export class SystemConfigService {
|
||||
|
||||
async init() {
|
||||
const config = await this.core.getConfig();
|
||||
await this.setLogLevel(config);
|
||||
this.config$.next(config);
|
||||
}
|
||||
|
||||
get config$() {
|
||||
|
||||
Reference in New Issue
Block a user