앱 - 오디션 리스트 API

- offset, limit 추가
This commit is contained in:
Klaus 2024-12-31 07:26:25 +09:00
parent 00c306475c
commit 9315447618
1 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class AuditionQueryRepositoryImpl(
var where = audition.isActive.isTrue
.and(
audition.status.eq(AuditionStatus.COMPLETED)
.and(audition.status.eq(AuditionStatus.IN_PROGRESS))
.or(audition.status.eq(AuditionStatus.IN_PROGRESS))
)
if (!isAdult) {
@ -74,6 +74,8 @@ class AuditionQueryRepositoryImpl(
)
.from(audition)
.where(where)
.offset(offset)
.limit(limit)
.orderBy(audition.status.desc())
.fetch()
}