From 6b693c8e54517152b3e9cbd519569101fdae531c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 8 Dec 2021 16:47:52 +0100 Subject: [PATCH] Properly default also the performance storage enablement MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- 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 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 }, -- 2.34.1