You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-26 22:13:53 +01:00
some changes with the rds
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/* Libraries / Imports */
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const { logDebug, logError, logInfo, logWarn } = require('./console');
|
||||
const { logError, logInfo } = require('./console');
|
||||
|
||||
let configName = 'config';
|
||||
|
||||
@@ -135,9 +135,7 @@ function addMissingFields(target, source) {
|
||||
if (typeof source[key] === 'object' && source[key] !== null && !Array.isArray(source[key])) {
|
||||
if (!target[key]) target[key] = {}; // Create missing object
|
||||
addMissingFields(target[key], source[key]); // Recursively add missing fields
|
||||
} else {
|
||||
if (target[key] === undefined) target[key] = source[key]; // Add missing fields only
|
||||
}
|
||||
} else if(target[key] === undefined) target[key] = source[key]; // Add missing fields only
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user