Fix build
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 25 Jan 2023 16:41:15 +0000 (17:41 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 25 Jan 2023 16:41:15 +0000 (17:41 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStationWorkerBroadcastChannel.ts

index 28c23cf848198c746c51ca043770e2e14c38ac99..ef232641b18e3cc1025698d6b70afd377270b834 100644 (file)
@@ -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) {