Merge branch 'master' of github.com:LucasBrazi06/ev-simulator into master-enterprise
[e-mobility-charging-stations-simulator.git] / src / charging-station / StationWorker.ts
index f54334e952d4cb86e0f50557209e87757c68b2a1..68c3ea24c0f96c4def2f5c187050bd5e816dc04b 100644 (file)
@@ -3,6 +3,6 @@ import { isMainThread, workerData } from 'worker_threads';
 import ChargingStation from './ChargingStation';
 
 if (!isMainThread) {
-  const station = new ChargingStation(workerData.index, workerData.templateFile);
+  const station = new ChargingStation(workerData.index as number, workerData.templateFile as string);
   station.start();
 }