this.sharedLRUCache.deleteChargingStationConfiguration(this.configurationFileHash);
this.templateFileWatcher?.close();
this.sharedLRUCache.deleteChargingStationTemplate(this.stationInfo?.templateHash);
- this.bootNotificationResponse = undefined;
+ delete this.bootNotificationResponse;
this.started = false;
parentPort?.postMessage(MessageChannelUtils.buildStoppedMessage(this));
this.stopping = false;
this.stationInfo = this.getStationInfo();
this.saveStationInfo();
// Avoid duplication of connectors related information in RAM
- this.stationInfo?.Connectors && delete this.stationInfo.Connectors;
+ delete this.stationInfo?.Connectors;
this.configuredSupervisionUrl = this.getConfiguredSupervisionUrl();
if (this.getEnableStatistics() === true) {
this.performanceStatistics = PerformanceStatistics.getInstance(
this.templateFile
} with connector ${connectorId} status configuration defined, undefine it`
);
- connectorStatus.status = undefined;
+ delete connectorStatus.status;
}
}
ConnectorStatusEnum.Unavailable
)
);
- this.getConnectorStatus(connectorId).status = undefined;
+ delete this.getConnectorStatus(connectorId)?.status;
}
}
}