mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
chore(server): patch config system (#11260)
This commit is contained in:
@@ -104,7 +104,9 @@ export class ServerService implements OnApplicationBootstrap {
|
||||
private async setup() {
|
||||
const overrides = await this.loadDbOverrides();
|
||||
this.configFactory.override(overrides);
|
||||
this.event.emit('config.init', { config: this.configFactory.config });
|
||||
await this.event.emitAsync('config.init', {
|
||||
config: this.configFactory.config,
|
||||
});
|
||||
}
|
||||
|
||||
private async loadDbOverrides() {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import './config';
|
||||
|
||||
import { Module } from '@nestjs/common';
|
||||
|
||||
import { DocStorageModule } from '../doc';
|
||||
|
||||
Reference in New Issue
Block a user