mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
chore(server): ignore unknown config module (#11926)
This commit is contained in:
@@ -243,6 +243,11 @@ function readConfigJSONOverrides(path: string) {
|
||||
export function override(config: AppConfig, update: DeepPartial<AppConfig>) {
|
||||
Object.keys(update).forEach(module => {
|
||||
const moduleDescriptors = APP_CONFIG_DESCRIPTORS[module];
|
||||
// ignore unknown config module
|
||||
if (!moduleDescriptors) {
|
||||
return;
|
||||
}
|
||||
|
||||
const configKeys = new Set(Object.keys(moduleDescriptors));
|
||||
|
||||
const moduleConfig = config[module as keyof AppConfig];
|
||||
|
||||
Reference in New Issue
Block a user