Fixed Smart Charging delete CP with null CS
MODIFY
src/server/ocpp/utils/OCPPUtils.ts
src/server/ocpp/utils/OCPPUtils.ts
@@ -973,6 +973,7 @@ export default class OCPPUtils {
inError: 0,
inSuccess: 0
};
+ if (!Utils.isEmptyArray(siteArea.chargingStations)) {
for (const chargingStation of siteArea.chargingStations) {
const chargingProfiles = await ChargingStationStorage.getChargingProfiles(tenant, {
chargingStationIDs: [chargingStation.id],
@@ -999,6 +1000,7 @@ export default class OCPPUtils {
}
}
}
+ }
return actionsResponse;
}

Fixed Smart Charging delete CP with null CS