X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FChargingStationWorkerBroadcastChannel.ts;h=ef232641b18e3cc1025698d6b70afd377270b834;hb=e92fdb8c90c72628a7644f9f60c8b0a1bbb95f0b;hp=28c23cf848198c746c51ca043770e2e14c38ac99;hpb=72092cfcf8a31c06e4592b25e060e2d74d2ed99c;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ChargingStationWorkerBroadcastChannel.ts b/src/charging-station/ChargingStationWorkerBroadcastChannel.ts index 28c23cf8..ef232641 100644 --- a/src/charging-station/ChargingStationWorkerBroadcastChannel.ts +++ b/src/charging-station/ChargingStationWorkerBroadcastChannel.ts @@ -278,7 +278,7 @@ export default class ChargingStationWorkerBroadcastChannel extends WorkerBroadca if ( commandResponse === undefined || commandResponse === null || - Utils.isEmptyObject(commandResponse) + Utils.isEmptyObject(commandResponse as CommandResponse) ) { responsePayload = { hashId: this.chargingStation.stationInfo.hashId, @@ -288,7 +288,7 @@ export default class ChargingStationWorkerBroadcastChannel extends WorkerBroadca responsePayload = this.commandResponseToResponsePayload( command, requestPayload, - commandResponse + commandResponse as CommandResponse ); } } catch (error) {