added back required param

This commit is contained in:
leif stawnyczy 2023-11-27 11:20:42 -05:00
parent ebead402fc
commit 0efbf32577
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ public class PersistedJpaBundleProvider implements IBundleProvider {
// this is so we can be sure of when we hit the last page // this is so we can be sure of when we hit the last page
// (when doing offset searches) // (when doing offset searches)
final List<JpaPid> pidsSubList = final List<JpaPid> pidsSubList =
mySearchCoordinatorSvc.getResources(myUuid, theFromIndex, theToIndex, myRequest, requestPartitionId); mySearchCoordinatorSvc.getResources(myUuid, theFromIndex, theToIndex + 1, myRequest, requestPartitionId);
// max list size should be either the entire list, or from - to length // max list size should be either the entire list, or from - to length
int maxSize = Math.min(theToIndex - theFromIndex, pidsSubList.size()); int maxSize = Math.min(theToIndex - theFromIndex, pidsSubList.size());
theResponsePageBuilder.setTotalRequestedResourcesFetched(pidsSubList.size()); theResponsePageBuilder.setTotalRequestedResourcesFetched(pidsSubList.size());