Fixed bug in handling non existing OCPP param
MODIFY
src/migration/tasks/UpdateChargingStationTemplatesTask.ts
src/migration/tasks/UpdateChargingStationTemplatesTask.ts
@@ -37,7 +37,7 @@ export default class UpdateChargingStationTemplatesTask extends MigrationTask {
}
getVersion() {
- return '2.6';
+ return '2.7';
}
private async applyTemplateToChargingStations(tenant: Tenant) {

MODIFY
src/server/ocpp/utils/OCPPUtils.ts
src/server/ocpp/utils/OCPPUtils.ts
@@ -635,6 +635,7 @@ export default class OCPPUtils {
message: `OCPP Parameter '${ocppParameter.key}' not found in Charging Station's configuration`
});
updatedOcppParams.inError++;
+ continue;
}
// Check Value
if (ocppParameter.value === currentOcppParam.value) {

Fixed bug in handling non existing OCPP param