Put back phase assignment
MODIFY
src/server/rest/service/ChargingStationService.ts
src/server/rest/service/ChargingStationService.ts
@@ -171,10 +171,12 @@ export default class ChargingStationService {
connector.currentType = filteredConnector.currentType;
connector.numberOfConnectedPhase = filteredConnector.numberOfConnectedPhase;
}
- // Always update
+ // Phase Assignment
+ if (siteArea?.numberOfPhases === 3) {
connector.phaseAssignmentToGrid = filteredConnector.phaseAssignmentToGrid;
}
}
+ }
// Update timestamp
chargingStation.lastChangedBy = { 'id': req.user.id };
chargingStation.lastChangedOn = new Date();

Put back phase assignment