From 7ddd308e8d1071a97173e1909175724a461e5411 Mon Sep 17 00:00:00 2001 From: Damien Date: Wed, 10 Apr 2024 18:06:18 -0400 Subject: [PATCH] [MODFIN-352] Minor fix --- .../org/folio/services/transactions/TransactionApiService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/folio/services/transactions/TransactionApiService.java b/src/main/java/org/folio/services/transactions/TransactionApiService.java index a7d76bf1..b331111a 100644 --- a/src/main/java/org/folio/services/transactions/TransactionApiService.java +++ b/src/main/java/org/folio/services/transactions/TransactionApiService.java @@ -195,6 +195,7 @@ private Future checkFundAllocations(Batch batch, RequestContext requestCon .map(t -> List.of(t.getFromFundId(), t.getToFundId())) .flatMap(Collection::stream) .filter(Objects::nonNull) + .distinct() .toList(); return fundService.getFundsByIds(fundIds, requestContext) .map(funds -> {