X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FIdTagsCache.ts;h=e5d28181b043de2f7faf1f0f9a71d6dbf6ef44df;hb=728e01f09f2b43946aab50eb2ed9673bf2d2daa3;hp=8d4027839851151374d23c795d04520d5fa9ee0f;hpb=a39e3a3d30ea9079b9e8b985ece56e1fa2ed8338;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/IdTagsCache.ts b/src/charging-station/IdTagsCache.ts index 8d402783..e5d28181 100644 --- a/src/charging-station/IdTagsCache.ts +++ b/src/charging-station/IdTagsCache.ts @@ -81,8 +81,10 @@ export class IdTagsCache { private getConnectorAffinityIdTag(chargingStation: ChargingStation, connectorId: number): string { const file = ChargingStationUtils.getIdTagsFile(chargingStation.stationInfo); const idTags = this.getIdTags(file); - const hashId = chargingStation.stationInfo.hashId; - const addressableKey = this.getIdTagsCacheIndexesAddressableKey(file, hashId); + const addressableKey = this.getIdTagsCacheIndexesAddressableKey( + file, + chargingStation.stationInfo.hashId + ); this.idTagsCachesAddressableIndexes.set( addressableKey, (chargingStation.index - 1 + (connectorId - 1)) % idTags.length