}
private getStationInfoFromFile (
- stationInfoPersistentConfiguration?: boolean
+ stationInfoPersistentConfiguration: boolean | undefined = Constants.DEFAULT_STATION_INFO
+ .stationInfoPersistentConfiguration
): ChargingStationInfo | undefined {
let stationInfo: ChargingStationInfo | undefined
if (stationInfoPersistentConfiguration === true) {
(stationInfoFromTemplate.stationInfoPersistentConfiguration =
stationInfoPersistentConfiguration)
const stationInfoFromFile = this.getStationInfoFromFile(
- stationInfoFromTemplate.stationInfoPersistentConfiguration ?? true
+ stationInfoFromTemplate.stationInfoPersistentConfiguration
)
// Priority:
// 1. charging station info from template
}
private getOcppConfiguration (
- ocppPersistentConfiguration: boolean | undefined = this.stationInfo?.ocppPersistentConfiguration
+ ocppPersistentConfiguration: boolean | undefined = Constants.DEFAULT_STATION_INFO
+ .ocppPersistentConfiguration
): ChargingStationOcppConfiguration | undefined {
let ocppConfiguration: ChargingStationOcppConfiguration | undefined =
this.getOcppConfigurationFromFile(ocppPersistentConfiguration)