From: Jérôme Benoit Date: Wed, 5 Jun 2024 18:40:19 +0000 (+0200) Subject: refactor: cleanup boot notification handling internal handling X-Git-Tag: v1.3.4~15 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d9c13bcac891b8686dbba36ae5c10f87948e3614;p=e-mobility-charging-stations-simulator.git refactor: cleanup boot notification handling internal handling Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.ts b/src/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.ts index 9b662134..9acdd3a4 100644 --- a/src/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.ts +++ b/src/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.ts @@ -155,7 +155,7 @@ export class ChargingStationWorkerBroadcastChannel extends WorkerBroadcastChanne [ BroadcastChannelProcedureName.BOOT_NOTIFICATION, async (requestPayload?: BroadcastChannelRequestPayload) => { - await this.chargingStation.ocppRequestService.requestHandler< + return await this.chargingStation.ocppRequestService.requestHandler< BootNotificationRequest, BootNotificationResponse >( @@ -170,7 +170,6 @@ export class ChargingStationWorkerBroadcastChannel extends WorkerBroadcastChanne throwError: true } ) - return this.chargingStation.bootNotificationResponse } ], [