- stopResponse = await this.chargingStation.stopTransactionOnConnector(connectorId, reason);
- ++this.connectorsStatus.get(connectorId)!.stopTransactionRequests!;
- if (stopResponse?.idTagInfo?.status === AuthorizationStatus.ACCEPTED) {
- ++this.connectorsStatus.get(connectorId)!.acceptedStopTransactionRequests!;
+ logger.info(
+ `${this.logPrefix(
+ connectorId
+ )} stop transaction with id ${this.chargingStation.getConnectorStatus(connectorId)
+ ?.transactionId}`
+ )
+ stopResponse = await this.chargingStation.stopTransactionOnConnector(connectorId, reason)
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+ ++this.connectorsStatus.get(connectorId)!.stopTransactionRequests
+ if (stopResponse.idTagInfo?.status === AuthorizationStatus.ACCEPTED) {
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+ ++this.connectorsStatus.get(connectorId)!.acceptedStopTransactionRequests