refactor: cleanup configuration handling methods namespace
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 27 May 2023 18:18:08 +0000 (20:18 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 27 May 2023 18:18:08 +0000 (20:18 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index de005ddf86dfb058e614e08899361e744a0a7563..b3c56eb8b963a319ea41e499d31261e9ef0dcbdd 100644 (file)
@@ -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();
     }