Skip to content

Commit

Permalink
Merge pull request #103 from PEC-CSS/getAllEvent-future-events
Browse files Browse the repository at this point in the history
getAllEvent will give future events if no args are passed
  • Loading branch information
harshjohar authored Nov 10, 2023
2 parents ebf0270 + 7ca1573 commit 5ad12d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public ResponseEntity<List<Event>> getAllEvents(@RequestParam @Nullable LocalDat
eventsFrom = LocalDate.now().minusYears(99);
}
if (eventsTill==null){
eventsTill = LocalDate.now();
eventsTill = LocalDate.now().plusYears(99);
}

if (eventsFrom.isAfter(eventsTill)) {
Expand Down

0 comments on commit 5ad12d5

Please sign in to comment.