UI server: permit to address all charging stations
[e-mobility-charging-stations-simulator.git] / src / charging-station / MessageChannelUtils.ts
index 3084a38899c40789979ea9314614ea5a1bb063d0..11eea6e66d28b79ccf3fab437725b50bd2d696da 100644 (file)
@@ -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
+      ),
     };
   }
 }