Skip to content

Commit

Permalink
[공모전] 조회 버그 수정 (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkyoungdeok authored Feb 27, 2024
1 parent a75ce1b commit 8312cfa
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ class CompetitionRepositoryImpl(
val ids = factory.pageQuery(pageable) {
select(column(Competition::id))
from(entity(Competition::class))
where(
col(Competition::showStartDate).lessThanOrEqualTo(
LocalDate.now()
)
)
}

val competitions = factory.listQuery {
Expand All @@ -49,6 +54,7 @@ class CompetitionRepositoryImpl(
orderSpec(pageable.sort)
)
}.iterator()

ids.map { competitions.next() }
}
}
Expand Down

0 comments on commit 8312cfa

Please sign in to comment.