From: Jérôme Benoit Date: Fri, 9 Sep 2022 21:53:52 +0000 (+0200) Subject: UI Protocol: fix payload merge X-Git-Tag: v1.1.73~17 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=2212319ac6b5f8a96ae7f92487612eb13dcf45cf;p=e-mobility-charging-stations-simulator.git UI Protocol: fix payload merge Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStationWorkerBroadcastChannel.ts b/src/charging-station/ChargingStationWorkerBroadcastChannel.ts index 31afa58e..00780f2f 100644 --- a/src/charging-station/ChargingStationWorkerBroadcastChannel.ts +++ b/src/charging-station/ChargingStationWorkerBroadcastChannel.ts @@ -100,12 +100,10 @@ export default class ChargingStationWorkerBroadcastChannel extends WorkerBroadca StopTransactionRequest, StartTransactionResponse >(this.chargingStation, RequestCommand.STOP_TRANSACTION, { - meterStop: - requestPayload.meterStop ?? - this.chargingStation.getEnergyActiveImportRegisterByTransactionId( - requestPayload.transactionId, - true - ), + meterStop: this.chargingStation.getEnergyActiveImportRegisterByTransactionId( + requestPayload.transactionId, + true + ), ...requestPayload, }), ],