Skip to content

Commit

Permalink
Update SearchService.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Nonononoki committed Jan 3, 2025
1 parent 6c84554 commit ec0f554
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,10 @@ public SearchDto searchComplete(SearchParams params) throws AlovoaException,
users = userRepo.usersBaseSearch(request, PageRequest.of(0, SEARCH_MAX, sort));
if (!users.isEmpty()) {
return SearchDto.builder().users(searchResultsToUserDto(users, sortId, user))
.global(false)
.stage(SearchStage.INCREASED_RADIUS_1).build();
.global(false).build();
}

// NO COMPATIBLE USERS FOUND, SEARCH AROUND THE WORLD!
// NO COMPATIBLE USERS FOUND NEARBY, SEARCH AROUND THE WORLD!
users = userRepo.usersSearchAllIgnoreLocation(request, PageRequest.of(0, SEARCH_MAX, sort));
return SearchDto.builder().users(searchResultsToUserDto(users, sortId, user))
.global(true).incompatible(true).stage(SearchStage.WORLD).build();
Expand Down

0 comments on commit ec0f554

Please sign in to comment.