Skip to content

Commit

Permalink
Merge pull request #4 from indexdata/CIRC-2136-floating-collections
Browse files Browse the repository at this point in the history
Circ 2136 floating collections
  • Loading branch information
nielserik authored Oct 16, 2024
2 parents 0f90cd9 + 4b1964b commit f155f2c
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 @@ -315,7 +316,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 f155f2c

Please sign in to comment.