fix: does not override ATG configuration with default one
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 24 May 2023 21:23:52 +0000 (23:23 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 24 May 2023 21:23:52 +0000 (23:23 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index 9a0d0f86749c1ad1d00bc029e356427ae6917de6..54af77fc0351bb3d918536c046ecab95c080594b 100644 (file)
@@ -831,8 +831,8 @@ export class ChargingStation {
         this.getTemplateFromFile()?.AutomaticTransactionGenerator;
     }
     return {
-      ...automaticTransactionGeneratorConfiguration,
       ...Constants.DEFAULT_ATG_CONFIGURATION,
+      ...automaticTransactionGeneratorConfiguration,
     };
   }