From: Jérôme Benoit Date: Sat, 3 Sep 2022 21:24:53 +0000 (+0200) Subject: Import cleanup X-Git-Tag: v1.1.70~12 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b20eb107fed5d02d7c6317944c4aef034aef49b2;p=e-mobility-charging-stations-simulator.git Import cleanup Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 3b83dfe4..b6628cd7 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -1847,7 +1847,7 @@ export default class ChargingStation { // Stop heartbeat this.stopHeartbeat(); // Stop ongoing transactions - if (this.automaticTransactionGenerator?.started) { + if (this.automaticTransactionGenerator?.started === true) { this.stopAutomaticTransactionGenerator(); } else { await this.stopRunningTransactions(reason); diff --git a/src/charging-station/ChargingStationWorkerBroadcastChannel.ts b/src/charging-station/ChargingStationWorkerBroadcastChannel.ts index 0c3af588..08627878 100644 --- a/src/charging-station/ChargingStationWorkerBroadcastChannel.ts +++ b/src/charging-station/ChargingStationWorkerBroadcastChannel.ts @@ -4,7 +4,6 @@ import { AuthorizationStatus, StartTransactionRequest, StartTransactionResponse, - StopTransactionReason, StopTransactionRequest, StopTransactionResponse, } from '../types/ocpp/Transaction';