mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[utils] deepMergeObjecs(), isObject() functions added
This commit is contained in:
@ -54,17 +54,7 @@ const connectionConfiguration = {
|
||||
}
|
||||
};
|
||||
const additionalOptions = configSql.get('msSqlExtraOptions');
|
||||
|
||||
const mergedObjects = {};
|
||||
for (const option in additionalOptions) {
|
||||
if (connectionConfiguration.hasOwnProperty(option) && typeof connectionConfiguration[option] === 'object') {
|
||||
mergedObjects[option] = Object.assign({}, connectionConfiguration[option], additionalOptions[option]);
|
||||
} else {
|
||||
mergedObjects[option] = additionalOptions[option];
|
||||
}
|
||||
}
|
||||
|
||||
const configuration = Object.assign({}, connectionConfiguration, mergedObjects);
|
||||
const configuration = utils.deepMergeObjects({}, connectionConfiguration, additionalOptions);
|
||||
|
||||
const placeholderPrefix = 'ph_';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user