X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Futils%2FConfiguration.ts;h=c1f867ca9a7b88301d362f5275590ccbe9afff7d;hb=de96acad9df699ff34f25e32ba616ef5c09ff124;hp=41ac9ba08f3fbf294d337075342c580be6170119;hpb=e4362ed76fe7b256b3f7a6ada2b92e53be8ab09f;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index 41ac9ba0..c1f867ca 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -31,7 +31,9 @@ export default class Configuration { { ...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 }, - ...Configuration.objectHasOwnProperty(Configuration.getConfig().performanceStorage, 'URI') ? { URI: Configuration.getConfig().performanceStorage.URI } : { URI: 'file:///performanceMeasurements.json' } + ...Configuration.objectHasOwnProperty(Configuration.getConfig().performanceStorage, 'URI') + ? { URI: Configuration.getConfig().performanceStorage.URI } + : { URI: (Configuration.getConfig().performanceStorage.type === StorageType.JSON_FILE) ? 'file:///performanceMeasurements.json' : `file:///${Constants.DEFAULT_PERFORMANCE_RECORDS_DB_NAME}.db` } }; } else { storageConfiguration =