tariff ID update fixed
MODIFY
src/server/rest/v1/service/ChargingStationService.ts
src/server/rest/v1/service/ChargingStationService.ts
@@ -164,10 +164,8 @@ export default class ChargingStationService {
}
}
chargingStation.public = filteredRequest.public;
- if (filteredRequest.tariffID) {
chargingStation.tariffID = filteredRequest.tariffID;
}
- }
if (Utils.objectHasProperty(filteredRequest, 'excludeFromSmartCharging')) {
chargingStation.excludeFromSmartCharging = filteredRequest.excludeFromSmartCharging;
}
@@ -217,11 +215,9 @@ export default class ChargingStationService {
connector.numberOfConnectedPhase = filteredConnector.numberOfConnectedPhase;
}
connector.phaseAssignmentToGrid = filteredConnector.phaseAssignmentToGrid;
- if (filteredRequest.tariffID) {
connector.tariffID = filteredConnector.tariffID;
}
}
- }
// Manual Config
if (chargingStation.manualConfiguration) {
// Existing charge points

tariff ID update fixed