Yuki Takei 1 год назад
Родитель
Сommit
21d66d2801
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apps/app/src/server/service/config-manager/config-loader.ts

+ 1 - 1
apps/app/src/server/service/config-manager/config-loader.ts

@@ -44,7 +44,7 @@ export class ConfigLoader implements IConfigLoader<ConfigKey, ConfigValues> {
     for (const doc of docs) {
       dbConfig[doc.key as ConfigKey] = {
         definition: (doc.key in CONFIG_DEFINITIONS) ? CONFIG_DEFINITIONS[doc.key as ConfigKey] : undefined,
-        value: doc.value ? JSON.parse(doc.value) : null,
+        value: doc.value != null ? JSON.parse(doc.value) : null,
       };
     }