diff --git a/src/main/java/org/folio/circulation/infrastructure/storage/inventory/LocationRepository.java b/src/main/java/org/folio/circulation/infrastructure/storage/inventory/LocationRepository.java index 52fe73dc2d..9c95b5712b 100644 --- a/src/main/java/org/folio/circulation/infrastructure/storage/inventory/LocationRepository.java +++ b/src/main/java/org/folio/circulation/infrastructure/storage/inventory/LocationRepository.java @@ -40,6 +40,7 @@ import org.folio.circulation.support.SingleRecordFetcher; import org.folio.circulation.support.fetching.CqlQueryFinder; import org.folio.circulation.support.http.client.CqlQuery; +import org.folio.circulation.support.http.client.PageLimit; import org.folio.circulation.support.results.Result; public class LocationRepository { @@ -287,7 +288,7 @@ public CompletableFuture>> fetchLocationsForServiceP log.debug("fetchLocationsForServicePoint:: parameters servicePointId: {}", servicePointId); return new CqlQueryFinder<>(locationsStorageClient, "locations", new LocationMapper()::toDomain) - .findByQuery(CqlQuery.match("servicePointIds", servicePointId)) + .findByQuery(CqlQuery.match("servicePointIds", servicePointId), PageLimit.maximumLimit()) .thenApply(r -> r.map(MultipleRecords::getRecords)); }