Skip to content

Commit

Permalink
[P4ADEV-1347] renamed dao
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedetta-fabbri committed Nov 14, 2024
1 parent d7b4e4f commit e3d317b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<FlowDTO> flows = organizationDao.getFlowsByOrganization(organizationId, isSpontaneous);
List<FlowDTO> flows = flowDao.getFlowsByOrganization(organizationId, isSpontaneous);

if (flows == null || flows.isEmpty())
throw new FlowException("No flow was found for organization with id " + organizationId);
Expand Down

0 comments on commit e3d317b

Please sign in to comment.