From c360d0aa936101140325d26aa5d396f48be63c8d Mon Sep 17 00:00:00 2001 From: captaineaglex Date: Tue, 7 Dec 2021 16:45:57 +0300 Subject: [PATCH] fix performanceStorage type assignment when not present --- src/utils/Configuration.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index 6777e8cc..bf25445c 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -61,7 +61,9 @@ export default class Configuration { storageConfiguration = { ...Configuration.objectHasOwnProperty(Configuration.getConfig().performanceStorage, 'enabled') && { enabled: Configuration.getConfig().performanceStorage.enabled }, - ...Configuration.objectHasOwnProperty(Configuration.getConfig().performanceStorage, 'type') && { type: Configuration.getConfig().performanceStorage.type }, + ...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: this.getDefaultPerformanceStorageUri(Configuration.getConfig()?.performanceStorage?.type ?? StorageType.JSON_FILE) } -- 2.34.1