From: Jérôme Benoit Date: Tue, 8 Mar 2022 17:50:52 +0000 (+0100) Subject: Fix deprecated configuration key detection in a section X-Git-Tag: v1.1.52~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=455ee9cf1788779d13cedfcf4eaa91a0d7921c16;p=e-mobility-charging-stations-simulator.git Fix deprecated configuration key detection in a section Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/Configuration.ts b/src/utils/Configuration.ts index 7309ec2f..9d873d2f 100644 --- a/src/utils/Configuration.ts +++ b/src/utils/Configuration.ts @@ -299,9 +299,9 @@ export default class Configuration { if ( sectionName && !Configuration.isUndefined(Configuration.getConfig()[sectionName]) && - !Configuration.isUndefined(Configuration.getConfig()[sectionName] as Record)[ - key - ] + !Configuration.isUndefined( + (Configuration.getConfig()[sectionName] as Record)[key] + ) ) { console.error( chalk`{green ${Configuration.logPrefix()}} {red Deprecated configuration key '${key}' usage in section '${sectionName}'${