diff --git a/src/main/java/org/folio/circulation/services/AllowedServicePointsService.java b/src/main/java/org/folio/circulation/services/AllowedServicePointsService.java index 5f45627238..cd04e5f17d 100644 --- a/src/main/java/org/folio/circulation/services/AllowedServicePointsService.java +++ b/src/main/java/org/folio/circulation/services/AllowedServicePointsService.java @@ -70,7 +70,7 @@ public class AllowedServicePointsService { private final InstanceRepository instanceRepository; private final String indexName; - public AllowedServicePointsService(Clients clients, Boolean isEcsRequestRouting) { + public AllowedServicePointsService(Clients clients, boolean isEcsRequestRouting) { itemRepository = new ItemRepository(clients); userRepository = new UserRepository(clients); requestRepository = new RequestRepository(clients); @@ -284,14 +284,14 @@ private Result refuseIfItemIsNotFound(Item item, AllowedServicePointsReque .collect(Collectors.toCollection(ArrayList::new)); // collect into a mutable list // TODO: fetch service points on a later stage, we only need IDs here - return fetchServicePoints(requestTypesAllowedByPolicy, servicePointAllowedByPolicy, indexName) + return fetchServicePoints(requestTypesAllowedByPolicy, servicePointAllowedByPolicy) .thenApply(r -> r.map(servicePoints -> groupAllowedServicePointsByRequestType( requestTypesAllowedByPolicyAndStatus, servicePoints, servicePointAllowedByPolicy))); } private CompletableFuture>> fetchServicePoints( List requestTypesAllowedByPolicy, - Map> servicePointsAllowedByPolicy, String indexName) { + Map> servicePointsAllowedByPolicy) { Set allowedServicePointsIds = servicePointsAllowedByPolicy.values().stream() .flatMap(Collection::stream)