From: Jérôme Benoit Date: Sat, 9 Apr 2022 16:52:11 +0000 (+0200) Subject: Fix a type casting X-Git-Tag: v1.1.57~13 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6d6dc22e22e4557ff102b19081ee72c8db5f2ca2;p=e-mobility-charging-stations-simulator.git Fix a type casting Signed-off-by: Jérôme Benoit --- 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); } }