this.evsesConfigurationHash = evsesConfigHash;
const templateMaxEvses = getMaxNumberOfEvses(stationTemplate?.Evses);
if (templateMaxEvses > 0) {
- for (const evse in stationTemplate.Evses) {
- const evseId = convertToInt(evse);
+ for (const evseKey in stationTemplate.Evses) {
+ const evseId = convertToInt(evseKey);
this.evses.set(evseId, {
connectors: buildConnectorsMap(
- stationTemplate?.Evses[evse]?.Connectors,
+ stationTemplate?.Evses[evseKey]?.Connectors,
this.logPrefix(),
this.templateFile,
),
public static workerPoolInUse(): boolean {
return [WorkerProcessType.dynamicPool, WorkerProcessType.staticPool].includes(
- Configuration.buildWorkerSection().processType!,
+ Configuration.getConfigurationSection<WorkerConfiguration>(ConfigurationSection.worker)
+ .processType!,
);
}
public static workerDynamicPoolInUse(): boolean {
- return Configuration.buildWorkerSection().processType === WorkerProcessType.dynamicPool;
+ return (
+ Configuration.getConfigurationSection<WorkerConfiguration>(ConfigurationSection.worker)
+ .processType === WorkerProcessType.dynamicPool
+ );
}
private static isConfigurationSectionCached(sectionName: ConfigurationSection): boolean {