From cf4568157972bb2aa3a94603a93266e9272e89b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 30 Jul 2023 22:42:32 +0200 Subject: [PATCH] refactor: code cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/ocpp/1.6/OCPP16ResponseService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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${ -- 2.34.1