From: Jérôme Benoit Date: Sat, 27 May 2023 18:18:08 +0000 (+0200) Subject: refactor: cleanup configuration handling methods namespace X-Git-Tag: v1.2.15~30 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=cb60061f9e275d5b81a75c30d51771150b24f8c5;p=e-mobility-charging-stations-simulator.git refactor: cleanup configuration handling methods namespace Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index de005ddf..b3c56eb8 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -853,7 +853,7 @@ export class ChargingStation { } else { this.automaticTransactionGenerator?.start(); } - this.saveChargingStationAutomaticTransactionGeneratorConfiguration(); + this.saveAutomaticTransactionGeneratorConfiguration(); parentPort?.postMessage(MessageChannelUtils.buildUpdatedMessage(this)); } @@ -865,7 +865,7 @@ export class ChargingStation { } else { this.automaticTransactionGenerator?.stop(); } - this.saveChargingStationAutomaticTransactionGeneratorConfiguration(); + this.saveAutomaticTransactionGeneratorConfiguration(); parentPort?.postMessage(MessageChannelUtils.buildUpdatedMessage(this)); } @@ -1550,7 +1550,7 @@ export class ChargingStation { return configuration; } - private saveChargingStationAutomaticTransactionGeneratorConfiguration(): void { + private saveAutomaticTransactionGeneratorConfiguration(): void { if (this.getAutomaticTransactionGeneratorPersistentConfiguration()) { this.saveConfiguration(); }