From: Jérôme Benoit Date: Sun, 30 Jul 2023 20:42:32 +0000 (+0200) Subject: refactor: code cleanup X-Git-Tag: v1.2.20~73 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=cf4568157972bb2aa3a94603a93266e9272e89b3;p=e-mobility-charging-stations-simulator.git refactor: code cleanup Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ocpp/1.6/OCPP16ResponseService.ts b/src/charging-station/ocpp/1.6/OCPP16ResponseService.ts index 2d4853f0..262f3b53 100644 --- a/src/charging-station/ocpp/1.6/OCPP16ResponseService.ts +++ b/src/charging-station/ocpp/1.6/OCPP16ResponseService.ts @@ -472,9 +472,9 @@ export class OCPP16ResponseService extends OCPPResponseService { const authorizeConnectorIdDefined = !isNullOrUndefined(authorizeConnectorId); if (payload.idTagInfo.status === OCPP16AuthorizationStatus.ACCEPTED) { if (authorizeConnectorIdDefined) { - chargingStation.getConnectorStatus(authorizeConnectorId!)!.idTagAuthorized = true; chargingStation.getConnectorStatus(authorizeConnectorId!)!.authorizeIdTag = requestPayload.idTag; + chargingStation.getConnectorStatus(authorizeConnectorId!)!.idTagAuthorized = true; } logger.debug( `${chargingStation.logPrefix()} idTag '${requestPayload.idTag}' accepted${