Add OCPP commands payload logging in the logs
[e-mobility-charging-stations-simulator.git] / src / charging-station / ChargingStationWorker.ts
index de0a47fe5d5745fd29b477ac072c046024922686..514fba8c6811c9652133a70f9b882b9818c698b7 100644 (file)
@@ -23,12 +23,7 @@ if (Utils.workerPoolInUse()) {
   // Add message listener to start charging station from main thread
   addMessageListener();
   if (!Utils.isUndefined(workerData)) {
-    startChargingStation({
-      // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
-      index: workerData.index as number,
-      // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
-      templateFile: workerData.templateFile as string,
-    });
+    startChargingStation(workerData as ChargingStationWorkerData);
   }
 }