Make the station worker self contained.
[e-mobility-charging-stations-simulator.git] / src / charging-station / StationWorker.js
index 1f25f14511388883858c9055c044da83f8feb665..1aa6d8e5e7f5f5e1635ed45f90860fdcdb587c27 100644 (file)
@@ -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();
 }