const logConfiguration: LogConfiguration = {
...defaultLogConfiguration,
...deprecatedLogConfiguration,
- ...Configuration.getConfig()?.log,
+ ...(Utils.hasOwnProp(Configuration.getConfig(), 'log') && Configuration.getConfig()?.log),
};
return logConfiguration;
}
const workerConfiguration: WorkerConfiguration = {
...defaultWorkerConfiguration,
...deprecatedWorkerConfiguration,
- ...Configuration.getConfig()?.worker,
+ ...(Utils.hasOwnProp(Configuration.getConfig(), 'worker') &&
+ Configuration.getConfig()?.worker),
};
return workerConfiguration;
}