From: Jérôme Benoit Date: Wed, 8 Dec 2021 15:47:52 +0000 (+0100) Subject: Properly default also the performance storage enablement X-Git-Tag: v1.1.39~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6b693c8e54517152b3e9cbd519569101fdae531c;p=e-mobility-charging-stations-simulator.git Properly default also the performance storage enablement Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index 3e5948ef..2e8ef2e9 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -60,7 +60,9 @@ export default class Configuration { if (Configuration.objectHasOwnProperty(Configuration.getConfig(), 'performanceStorage')) { storageConfiguration = { - ...Configuration.objectHasOwnProperty(Configuration.getConfig().performanceStorage, 'enabled') && { enabled: Configuration.getConfig().performanceStorage.enabled }, + ...Configuration.objectHasOwnProperty(Configuration.getConfig().performanceStorage, 'enabled') + ? { enabled: Configuration.getConfig().performanceStorage.enabled } + : { enabled: false }, ...Configuration.objectHasOwnProperty(Configuration.getConfig().performanceStorage, 'type') ? { type: Configuration.getConfig().performanceStorage.type } : { type: StorageType.JSON_FILE },