X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FChargingStationWorker.ts;h=2623f1272d2f19142715f12bfaadaff469294ddb;hb=53a9f111b7e3a26ccbb68ce2d31ddca209d3a5f2;hp=4fde42c4d3908a368e2424d3a77cbb3180b0d34c;hpb=e19b2687133ddcf6b9c054f391a68244fd37c189;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ChargingStationWorker.ts b/src/charging-station/ChargingStationWorker.ts index 4fde42c4..2623f127 100644 --- a/src/charging-station/ChargingStationWorker.ts +++ b/src/charging-station/ChargingStationWorker.ts @@ -20,7 +20,7 @@ if (Configuration.workerPoolInUse()) { chargingStationWorker = new ThreadWorker( (data?: ChargingStationWorkerData): void => { // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, no-new - new ChargingStation(data!.index, data!.templateFile) + new ChargingStation(data!.index, data!.templateFile, data!.options) } ) } else { @@ -33,7 +33,8 @@ if (Configuration.workerPoolInUse()) { try { const chargingStation = new ChargingStation( message.data.index, - message.data.templateFile + message.data.templateFile, + message.data.options ) parentPort?.postMessage({ event: WorkerMessageEvents.addedWorkerElement,