refactor: update MikroORM entities definition
[e-mobility-charging-stations-simulator.git] / src / charging-station / ChargingStation.ts
index 6cfcd707d489f3e8e709247d377f240226c8e160..7534f66e72f38abd778d11397b42708a03ab0af3 100644 (file)
@@ -1763,7 +1763,8 @@ export class ChargingStation extends EventEmitter {
           })
           // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
           this.bootNotificationResponse.currentTime = convertToDate(
-            this.bootNotificationResponse.currentTime
+            // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
+            this.bootNotificationResponse?.currentTime
           )!
           if (!this.isRegistered()) {
             this.stationInfo?.registrationMaxRetries !== -1 && ++registrationRetryCount