X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcharging-station%2FChargingStationWorker.ts;h=514fba8c6811c9652133a70f9b882b9818c698b7;hb=6d6dc22e22e4557ff102b19081ee72c8db5f2ca2;hp=fb551a4565d82319cd07249b01cf7f6b65086ce2;hpb=4e4199c8e4c7f11216be46b0490e8214e04f702d;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ChargingStationWorker.ts b/src/charging-station/ChargingStationWorker.ts index fb551a45..514fba8c 100644 --- a/src/charging-station/ChargingStationWorker.ts +++ b/src/charging-station/ChargingStationWorker.ts @@ -23,10 +23,7 @@ if (Utils.workerPoolInUse()) { // Add message listener to start charging station from main thread addMessageListener(); if (!Utils.isUndefined(workerData)) { - startChargingStation({ - index: (workerData as ChargingStationWorkerData).index, - templateFile: (workerData as ChargingStationWorkerData).templateFile, - }); + startChargingStation(workerData as ChargingStationWorkerData); } }