From: Jérôme Benoit Date: Thu, 1 Feb 2024 11:03:58 +0000 (+0100) Subject: fix: fix uiServer configuration section sanity checks X-Git-Tag: v1.2.34~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=baf34a770f0392a9556c20fb9140394d12c5ebb7;p=e-mobility-charging-stations-simulator.git fix: fix uiServer configuration section sanity checks Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index bd740997..a4262770 100644 --- a/src/charging-station/Bootstrap.ts +++ b/src/charging-station/Bootstrap.ts @@ -243,7 +243,7 @@ export class Bootstrap extends EventEmitter { private async restart (): Promise { await this.stop() Configuration.getConfigurationSection(ConfigurationSection.uiServer) - .enabled === false && this.uiServer?.stop() + .enabled !== true && this.uiServer?.stop() this.initializedCounters = false await this.start() } @@ -440,7 +440,7 @@ export class Bootstrap extends EventEmitter { if ( this.numberOfConfiguredChargingStations === 0 && Configuration.getConfigurationSection(ConfigurationSection.uiServer) - .enabled === true + .enabled !== true ) { console.error( chalk.red(