Skip to content

Commit

Permalink
CIRC-2136 fix query limit, locations-by-service-point look-up
Browse files Browse the repository at this point in the history
  • Loading branch information
nielserik committed Oct 16, 2024
1 parent 261420d commit 396acd0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -287,7 +288,7 @@ public CompletableFuture<Result<Collection<Location>>> 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));
}

Expand Down

0 comments on commit 396acd0

Please sign in to comment.