[EMSP] Fix location patch
MODIFY
src/server/ocpi/ocpi-services-impl/ocpi-2.1.1/EMSPLocationsEndpoint.ts
src/server/ocpi/ocpi-services-impl/ocpi-2.1.1/EMSPLocationsEndpoint.ts
@@ -150,11 +150,16 @@ export default class EMSPLocationsEndpoint extends AbstractEndpoint {
await ChargingStationStorage.deleteChargingStation(tenant.id, chargingStation.id);
return;
}
+ chargingStation.ocpiData.evse.status = evse.status;
const status = OCPIMapping.convertOCPIStatus2Status(evse.status);
chargingStation.connectors.forEach((connector) => {
connector.status = status;
});
}
+ if (evse.last_updated) {
+ chargingStation.lastChangedOn = evse.last_updated;
+ chargingStation.ocpiData.evse.last_updated = evse.last_updated;
+ }
const patchedChargingStation = OCPIMapping.convertEvseToChargingStation(chargingStation.id, evse);
if (patchedChargingStation.coordinates) {
chargingStation.coordinates = patchedChargingStation.coordinates;

MODIFY
src/server/ocpi/ocpi-services-impl/ocpi-2.1.1/OCPIMapping.ts
src/server/ocpi/ocpi-services-impl/ocpi-2.1.1/OCPIMapping.ts
@@ -65,8 +65,6 @@ export default class OCPIMapping {
issuer: false,
connectors: [],
chargeBoxSerialNumber: evse.evse_id,
- imsi: evse.uid,
- iccid: location.id,
ocpiData: {
evse: evse
}

[EMSP] Fix location patch