fix: fix remote transaction start debug log
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 5 Jun 2024 17:55:44 +0000 (19:55 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 5 Jun 2024 17:55:44 +0000 (19:55 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts

index 773d01e318c267fc52b6ec54d61f32b626bbf8a4..d3ee61fd84623faaff709083ec321c8d03c41197 100644 (file)
@@ -431,7 +431,7 @@ export class OCPP16IncomingRequestService extends OCPPIncomingRequestService {
             }
           )
             .then(response => {
-              if (response.status === OCPP16AuthorizationStatus.ACCEPTED) {
+              if (response.idTagInfo.status === OCPP16AuthorizationStatus.ACCEPTED) {
                 logger.debug(
                   `${chargingStation.logPrefix()} Remote start transaction ACCEPTED on ${
                     chargingStation.stationInfo?.chargingStationId