Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
if (this.getEnableStatistics() === true) {
this.performanceStatistics?.stop();
}
+ if (this.hasFeatureProfile(SupportedFeatureProfiles.Reservation)) {
+ this.stopReservationExpirationSetInterval();
+ }
this.sharedLRUCache.deleteChargingStationConfiguration(this.configurationFileHash);
this.templateFileWatcher?.close();
this.sharedLRUCache.deleteChargingStationTemplate(this.templateFileHash);
continue;
}
const chargingSchedule = chargingProfile.chargingSchedule;
- if (connectorStatus?.transactionStarted && !chargingSchedule?.startSchedule) {
+ if (connectorStatus?.transactionStarted && isNullOrUndefined(chargingSchedule?.startSchedule)) {
logger.debug(
`${logPrefix} ${moduleName}.getLimitFromChargingProfiles: Charging profile id ${chargingProfile.chargingProfileId} has no startSchedule defined. Trying to set it to the connector current transaction start date`,
);