Skip to content

Commit

Permalink
Filter in api call instead
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackYps committed Sep 29, 2024
1 parent 1e6291f commit 84726b4
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,11 @@ public Flux<LeagueSeason> getSeasons(League league) {
com.faforever.commons.api.dto.LeagueSeason.class)
.collection()
.setFilter(
qBuilder().intNum(
"league.id")
.eq(league.id()))
qBuilder().intNum("league.id")
.eq(league.id())
.and()
.instant("startDate")
.before(OffsetDateTime.now().toInstant(), false))
.addSortingRule(
"startDate",
false);
Expand Down

0 comments on commit 84726b4

Please sign in to comment.