From: Jérôme Benoit Date: Wed, 25 Jan 2023 16:41:15 +0000 (+0100) Subject: Fix build X-Git-Tag: v1.1.92~16 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=e92fdb8c90c72628a7644f9f60c8b0a1bbb95f0b;hp=72092cfcf8a31c06e4592b25e060e2d74d2ed99c;p=e-mobility-charging-stations-simulator.git Fix build Signed-off-by: Jérôme Benoit --- 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) {