Ensure charging station data is always JSON serializable
[e-mobility-charging-stations-simulator.git] / src / charging-station / MessageChannelUtils.ts
index 3084a38899c40789979ea9314614ea5a1bb063d0..4cf037ba28e890dbb82eeae840dcc42bf221dbb5 100644 (file)
@@ -55,7 +55,9 @@ export class MessageChannelUtils {
       stationInfo: chargingStation.stationInfo,
       stopped: chargingStation.stopped,
       bootNotificationResponse: chargingStation.bootNotificationResponse,
-      connectors: Array.from(chargingStation.connectors.values()),
+      connectors: Array.from(chargingStation.connectors.values()).map(
+        ({ transactionSetInterval, ...connectorStatusRest }) => connectorStatusRest
+      ),
     };
   }
 }