diff --git a/src/main/java/it/gov/pagopa/payhub/activities/activity/InstallmentsValidationActivity.java b/src/main/java/it/gov/pagopa/payhub/activities/activity/InstallmentsValidationActivity.java index 18989819..f96d4eb4 100644 --- a/src/main/java/it/gov/pagopa/payhub/activities/activity/InstallmentsValidationActivity.java +++ b/src/main/java/it/gov/pagopa/payhub/activities/activity/InstallmentsValidationActivity.java @@ -18,16 +18,16 @@ @Service public class InstallmentsValidationActivity { - private final FlowDao organizationDao; + private final FlowDao flowDao; private final LocationDao locationDao; - public InstallmentsValidationActivity(FlowDao organizationDao, LocationDao locationDao) { - this.organizationDao = organizationDao; + public InstallmentsValidationActivity(FlowDao flowDao, LocationDao locationDao) { + this.flowDao = flowDao; this.locationDao = locationDao; } public FlowDTO validateFlow(Long organizationId, boolean isSpontaneous) { - List flows = organizationDao.getFlowsByOrganization(organizationId, isSpontaneous); + List flows = flowDao.getFlowsByOrganization(organizationId, isSpontaneous); if (flows == null || flows.isEmpty()) throw new FlowException("No flow was found for organization with id " + organizationId);