From a574fd79717e84cee8be3dbb3408a2eecb4b786c Mon Sep 17 00:00:00 2001 From: saba_zedginidze Date: Tue, 27 Aug 2024 16:46:21 +0400 Subject: [PATCH] [MODINVSTOR-1243] Fix typo --- src/main/java/org/folio/inventory/resources/TenantItems.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/folio/inventory/resources/TenantItems.java b/src/main/java/org/folio/inventory/resources/TenantItems.java index 400d66f0e..02ec8465e 100644 --- a/src/main/java/org/folio/inventory/resources/TenantItems.java +++ b/src/main/java/org/folio/inventory/resources/TenantItems.java @@ -62,7 +62,7 @@ public void register(Router router) { private void getItemsFromTenants(RoutingContext routingContext) { var getItemsFutures = routingContext.body().asPojo(TenantItemPairCollection.class) .getTenantItemPairs().stream() - .collect(groupingBy(TenantItemPair::getTenantId, mapping(TenantItemPair::getTenantId, toList()))) + .collect(groupingBy(TenantItemPair::getTenantId, mapping(TenantItemPair::getItemId, toList()))) .entrySet().stream() .map(tenantToItems -> getItemsWithTenantId(tenantToItems.getKey(), tenantToItems.getValue(), routingContext)) .toList();