X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FMessageChannelUtils.ts;h=77adae8e5c44d7ef033c36a7c359db9b0c9ea44b;hb=7859628671cd8bd4cf9e424b37b8c014dd559ee3;hp=19266f73f6fee0348814dd7e4643838c50376a74;hpb=5e3cb7281de2b6fa8b61a453f964c2f213fefa80;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/MessageChannelUtils.ts b/src/charging-station/MessageChannelUtils.ts index 19266f73..77adae8e 100644 --- a/src/charging-station/MessageChannelUtils.ts +++ b/src/charging-station/MessageChannelUtils.ts @@ -1,9 +1,9 @@ import { - ChargingStationData, - ChargingStationWorkerMessage, + type ChargingStationData, + type ChargingStationWorkerMessage, ChargingStationWorkerMessageEvents, } from '../types/ChargingStationWorker'; -import type Statistics from '../types/Statistics'; +import type { Statistics } from '../types/Statistics'; import type ChargingStation from './ChargingStation'; export class MessageChannelUtils { @@ -60,9 +60,13 @@ export class MessageChannelUtils { ({ transactionSetInterval, ...connectorStatusRest }) => connectorStatusRest ), ...(chargingStation.automaticTransactionGenerator && { - automaticTransactionGeneratorStatuses: [ - ...chargingStation.automaticTransactionGenerator.connectorsStatus.values(), - ], + automaticTransactionGenerator: { + automaticTransactionGenerator: + chargingStation.automaticTransactionGenerator.configuration, + automaticTransactionGeneratorStatuses: [ + ...chargingStation.automaticTransactionGenerator.connectorsStatus.values(), + ], + }, }), }; }