stationInfo: chargingStation.stationInfo,
stopped: chargingStation.stopped,
bootNotificationResponse: chargingStation.bootNotificationResponse,
- connectors: Array.from(chargingStation.connectors.values()).map(
+ connectors: [...chargingStation.connectors.values()].map(
// eslint-disable-next-line @typescript-eslint/no-unused-vars
({ transactionSetInterval, ...connectorStatusRest }) => connectorStatusRest
),
// TODO: remove cast to unknown
return {
status: ResponseStatus.SUCCESS,
- ...Array.from(this.uiServer.chargingStations.values()),
+ ...[...this.uiServer.chargingStations.values()],
} as unknown as ResponsePayload;
}