From baf34a770f0392a9556c20fb9140394d12c5ebb7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 1 Feb 2024 12:03:58 +0100 Subject: [PATCH] fix: fix uiServer configuration section sanity checks MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/Bootstrap.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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( -- 2.34.1