Skip to content

Commit

Permalink
Merge pull request #570 from Gosrock/dev
Browse files Browse the repository at this point in the history
Api-v1.0.6-1
  • Loading branch information
ImNM authored Mar 3, 2024
2 parents eb15a4e + f0f4f2c commit e318a83
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ public Slice<Event> querySliceEventsByKeyword(String keyword, Pageable pageable)
.limit(pageable.getPageSize() + 1)
.fetch();

final long remainingSize = Math.max(pageable.getPageSize() - openEvents.size(), 0);
if (remainingSize > 0) {
final long remainingSize = pageable.getPageSize() - openEvents.size();
if (remainingSize >= 0) {
openEvents.addAll(queryClosedEventsByKeywordAndSize(keyword, pageable, remainingSize));
}
return SliceUtil.valueOf(openEvents, pageable);
Expand Down

0 comments on commit e318a83

Please sign in to comment.