X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FStationWorker.js;h=1aa6d8e5e7f5f5e1635ed45f90860fdcdb587c27;hb=aa48157ab243fd7794081b44913c7f26b79d9682;hp=1f25f14511388883858c9055c044da83f8feb665;hpb=7dde0b73302613be132c41e1f28a42de555dc2b6;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/StationWorker.js b/src/charging-station/StationWorker.js index 1f25f145..1aa6d8e5 100644 --- a/src/charging-station/StationWorker.js +++ b/src/charging-station/StationWorker.js @@ -2,6 +2,6 @@ const {isMainThread, workerData} = require('worker_threads'); const ChargingStation = require('./ChargingStation'); if (!isMainThread) { - const station = new ChargingStation(workerData.index, workerData.template); + const station = new ChargingStation(workerData.index, workerData.templateFile); station.start(); }