From e92fdb8c90c72628a7644f9f60c8b0a1bbb95f0b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 25 Jan 2023 17:41:15 +0100 Subject: [PATCH] Fix build MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/ChargingStationWorkerBroadcastChannel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.34.1