Skip to content

Commit

Permalink
P4ADEV-2005 renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
macacia committed Feb 6, 2025
1 parent 9dbb9bb commit c275abb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public List<Long> fetch(Long organizationId, List<PaymentsReportingIdDTO> paymen
if (paymentsReportingIds.isEmpty()) {
return Collections.emptyList();
}
List<String> ingestionFlowFileNames = getFilenamesFilteredByNotCompleted(organizationId, paymentsReportingIds);
List<String> ingestionFlowFileNames = getFilenamesFilteredByStatus(organizationId, paymentsReportingIds);

return paymentsReportingIds.stream()
.filter(item -> ingestionFlowFileNames.contains(item.getPaymentsReportingFileName()))
Expand All @@ -46,7 +46,7 @@ public List<Long> fetch(Long organizationId, List<PaymentsReportingIdDTO> paymen
* @param paymentsReportingIds
* @return a list of file names that have not been processed
*/
private List<String> getFilenamesFilteredByNotCompleted(Long organizationId, List<PaymentsReportingIdDTO> paymentsReportingIds) {
private List<String> getFilenamesFilteredByStatus(Long organizationId, List<PaymentsReportingIdDTO> paymentsReportingIds) {
return paymentsReportingIds.stream().map(PaymentsReportingIdDTO::getPaymentsReportingFileName)
.map(item -> ingestionFlowFileService
.findByOrganizationIdFlowTypeFilename(organizationId, FlowFileTypeEnum.PAYMENTS_REPORTING_PAGOPA, item))
Expand Down

0 comments on commit c275abb

Please sign in to comment.