From 396acd0a8082e15a7623d973b3ec6db62f7bf5c0 Mon Sep 17 00:00:00 2001 From: nielserik Date: Wed, 16 Oct 2024 21:16:36 +0200 Subject: [PATCH] CIRC-2136 fix query limit, locations-by-service-point look-up --- .../infrastructure/storage/inventory/LocationRepository.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); }