Fixed bug that prevented default config items to be set

This commit is contained in:
Tzahi12345
2020-05-02 15:06:43 -04:00
parent 2eef1b062c
commit 661b96cfe5

View File

@@ -77,7 +77,7 @@ function getConfigItem(key) {
let path = CONFIG_ITEMS[key]['path'];
const val = Object.byString(config_json, path);
if (val === undefined && Object.byString(DEFAULT_CONFIG, path)) {
logger.warning(`Cannot find config with key '${key}'. Creating one with the default value...`);
logger.warn(`Cannot find config with key '${key}'. Creating one with the default value...`);
setConfigItem(key, Object.byString(DEFAULT_CONFIG, path));
return Object.byString(DEFAULT_CONFIG, path);
}