Move hashId to stationInfo
[e-mobility-charging-stations-simulator.git] / src / charging-station / MessageChannelUtils.ts
index e2a7b0b40db6f3ed246ac3d34e59979bea7eb690..11eea6e66d28b79ccf3fab437725b50bd2d696da 100644 (file)
@@ -3,7 +3,7 @@ import {
   ChargingStationWorkerMessage,
   ChargingStationWorkerMessageEvents,
 } from '../types/ChargingStationWorker';
-import Statistics from '../types/Statistics';
+import type Statistics from '../types/Statistics';
 import type ChargingStation from './ChargingStation';
 
 export class MessageChannelUtils {
@@ -51,11 +51,13 @@ export class MessageChannelUtils {
     chargingStation: ChargingStation
   ): ChargingStationData {
     return {
-      hashId: chargingStation.hashId,
       stationInfo: chargingStation.stationInfo,
       stopped: chargingStation.stopped,
       bootNotificationResponse: chargingStation.bootNotificationResponse,
-      connectors: Array.from(chargingStation.connectors.values()),
+      connectors: [...chargingStation.connectors.values()].map(
+        // eslint-disable-next-line @typescript-eslint/no-unused-vars
+        ({ transactionSetInterval, ...connectorStatusRest }) => connectorStatusRest
+      ),
     };
   }
 }