refactor: ensure all worker events are remitted in main thread
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 5 Feb 2024 21:50:38 +0000 (22:50 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 5 Feb 2024 21:50:38 +0000 (22:50 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/Bootstrap.ts

index 75accffc9f72b723583fdd8f1681845083e85668..98cadb845dd933dc48438c5c7010347d4a071af6 100644 (file)
@@ -362,6 +362,7 @@ export class Bootstrap extends EventEmitter {
           this.emit(ChargingStationWorkerMessageEvents.performanceStatistics, msg.data)
           break
         case ChargingStationWorkerMessageEvents.addedWorkerElement:
+          this.emit(ChargingStationWorkerMessageEvents.addWorkerElement, msg.data)
           break
         case ChargingStationWorkerMessageEvents.workerElementError:
           this.emit(ChargingStationWorkerMessageEvents.workerElementError, msg.data)