fix: ensure persistence configuration override is taken in all case
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 11 Feb 2024 12:55:03 +0000 (13:55 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 11 Feb 2024 12:55:03 +0000 (13:55 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/Helpers.ts

index bf118e9fbb4f9a13111d57c1cc332a3cedd2225c..8870ce86ab3882a89e0c34364026495eaf115d84 100644 (file)
@@ -339,6 +339,7 @@ export const setChargingStationOptions = (
   options?: ChargingStationOptions
 ): ChargingStationInfo => {
   if (options?.persistentConfiguration != null) {
+    stationInfo.stationInfoPersistentConfiguration = options.persistentConfiguration
     stationInfo.ocppPersistentConfiguration = options.persistentConfiguration
     stationInfo.automaticTransactionGeneratorPersistentConfiguration =
       options.persistentConfiguration