Rename the variable used to build CS hashId
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 8 Jan 2023 11:37:21 +0000 (12:37 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 8 Jan 2023 11:37:21 +0000 (12:37 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStationUtils.ts

index daf48ac3475de0b918de6e653fce5c14ce6aadad..aa11822f9ffacba046eb3b037e3e0db543232315 100644 (file)
@@ -49,7 +49,7 @@ export class ChargingStationUtils {
   }
 
   public static getHashId(index: number, stationTemplate: ChargingStationTemplate): string {
-    const hashBootNotificationRequest = {
+    const chargingStationInfo = {
       chargePointModel: stationTemplate.chargePointModel,
       chargePointVendor: stationTemplate.chargePointVendor,
       ...(!Utils.isUndefined(stationTemplate.chargeBoxSerialNumberPrefix) && {
@@ -74,7 +74,7 @@ export class ChargingStationUtils {
     return crypto
       .createHash(Constants.DEFAULT_HASH_ALGORITHM)
       .update(
-        JSON.stringify(hashBootNotificationRequest) +
+        JSON.stringify(chargingStationInfo) +
           ChargingStationUtils.getChargingStationId(index, stationTemplate)
       )
       .digest('hex');