Skip to content

Commit

Permalink
SMA-105: nearby events can be now searched by place name and only fut…
Browse files Browse the repository at this point in the history
…ure events are returned
  • Loading branch information
ivamach committed May 2, 2024
1 parent 5b83439 commit 1b4e345
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ public List<EventDTO> getNearbyEvents(RequestEventDTO requestEventDTO, final Pag
requestEventDTO.getLongitude(),
requestEventDTO.getLatitude(),
sportNamesWithLowerCase,
requestEventDTO.getPlaceName() == null
? ""
: requestEventDTO.getPlaceName().toLowerCase(),
LocalDateTime.now(),
pageable);

return events.stream().map(eventMapper::convertEventToEventDTO).collect(Collectors.toList());
Expand Down

0 comments on commit 1b4e345

Please sign in to comment.