Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
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${