오디션 #249
|
@ -56,7 +56,7 @@ class AuditionQueryRepositoryImpl(
|
||||||
var where = audition.isActive.isTrue
|
var where = audition.isActive.isTrue
|
||||||
.and(
|
.and(
|
||||||
audition.status.eq(AuditionStatus.COMPLETED)
|
audition.status.eq(AuditionStatus.COMPLETED)
|
||||||
.and(audition.status.eq(AuditionStatus.IN_PROGRESS))
|
.or(audition.status.eq(AuditionStatus.IN_PROGRESS))
|
||||||
)
|
)
|
||||||
|
|
||||||
if (!isAdult) {
|
if (!isAdult) {
|
||||||
|
@ -74,6 +74,8 @@ class AuditionQueryRepositoryImpl(
|
||||||
)
|
)
|
||||||
.from(audition)
|
.from(audition)
|
||||||
.where(where)
|
.where(where)
|
||||||
|
.offset(offset)
|
||||||
|
.limit(limit)
|
||||||
.orderBy(audition.status.desc())
|
.orderBy(audition.status.desc())
|
||||||
.fetch()
|
.fetch()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue