X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcharging-station%2FChargingStationWorker.ts;h=514fba8c6811c9652133a70f9b882b9818c698b7;hb=db5a5d93848e4ba9520df946e04f74c78cb1dd12;hp=6a6f631ca4597809fedafcaaeb696e8c35bd50d1;hpb=c0f4be747574980ada77fd4be1c691637fa69347;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ChargingStationWorker.ts b/src/charging-station/ChargingStationWorker.ts index 6a6f631c..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 Record).index as number, - templateFile: (workerData as Record).templateFile as string, - }); + startChargingStation(workerData as ChargingStationWorkerData); } }