Skip to content

Commit

Permalink
Merge pull request #89 from cardano-foundation/fix/lost_cde
Browse files Browse the repository at this point in the history
fix: lost code
  • Loading branch information
M4rc0Russ0 authored Nov 15, 2024
2 parents bafbd0b + 530130a commit cb2bbbb
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,22 @@ public ReconciliationResponseView allReconciliationTransaction(ReconciliationFil
val transactions = accountingCoreTransactionRepository.findAllReconciliationSpecial(body.getReconciliationRejectionCode(), body.getDateFrom(), body.getLimit(), body.getPage()).stream()
.filter(o -> {
if (o[0] instanceof TransactionEntity) {
if (!txDuplicated.contains(o[0])) {
txDuplicated.add(o[0]);
if (!txDuplicated.contains(((TransactionEntity) o[0]).getId())) {
txDuplicated.add(((TransactionEntity) o[0]).getId());
return true;
}
}
if (o[1] instanceof ReconcilationViolation) {
return true;
if (!txDuplicated.contains(((ReconcilationViolation) o[1]).getTransactionId())) {
txDuplicated.add(((ReconcilationViolation) o[1]).getTransactionId());
return true;
}
}

return false;
})
.map(this::getReconciliationTransactionsSelector)
.collect(toSet());
.sorted(Comparator.comparing(TransactionReconciliationTransactionsView::getId))
.collect(Collectors.toCollection(LinkedHashSet::new));

return new ReconciliationResponseView(
(long) accountingCoreTransactionRepository.findAllReconciliationSpecialCount(body.getReconciliationRejectionCode(), body.getDateFrom(), body.getLimit(), body.getPage()).size(),
Expand Down

0 comments on commit cb2bbbb

Please sign in to comment.