From: Jérôme Benoit Date: Sun, 8 Jan 2023 11:37:21 +0000 (+0100) Subject: Rename the variable used to build CS hashId X-Git-Tag: v1.1.89~12 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=99e922379e0a2b9f03401bba6551215035e6c5d1;p=e-mobility-charging-stations-simulator.git Rename the variable used to build CS hashId Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStationUtils.ts b/src/charging-station/ChargingStationUtils.ts index daf48ac3..aa11822f 100644 --- a/src/charging-station/ChargingStationUtils.ts +++ b/src/charging-station/ChargingStationUtils.ts @@ -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');