refactor: cleanup boot notification handling internal handling
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 5 Jun 2024 18:40:19 +0000 (20:40 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 5 Jun 2024 18:40:19 +0000 (20:40 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.ts

index 9b6621343a4afcfa36958f11c29bee35888cdbf3..9acdd3a42c94c491587ead7839156d95949ec797 100644 (file)
@@ -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
         }
       ],
       [