1
0
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:
2026-02-25 10:44:37 +01:00
parent 42a20330af
commit e14b3f8d11
3 changed files with 17 additions and 16 deletions

View File

@@ -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
});
}