채널별 인기 콘텐츠

- audioTheme join을 추가하여 에러 제거
This commit is contained in:
Klaus 2025-02-09 22:58:09 +09:00
parent 8fb1247279
commit b7610641e5
1 changed files with 4 additions and 0 deletions

View File

@ -347,6 +347,7 @@ class RankingRepository(
.and(audioContent.isActive.isTrue) .and(audioContent.isActive.isTrue)
.and(audioContent.duration.isNotNull) .and(audioContent.duration.isNotNull)
.and(audioContent.limited.isNull) .and(audioContent.limited.isNull)
.and(audioContentTheme.isActive.isTrue)
.and(order.isActive.isTrue) .and(order.isActive.isTrue)
.and(member.id.eq(creatorId)) .and(member.id.eq(creatorId))
@ -369,6 +370,7 @@ class RankingRepository(
) )
.from(order) .from(order)
.innerJoin(order.audioContent, audioContent) .innerJoin(order.audioContent, audioContent)
.innerJoin(audioContent.theme, audioContentTheme)
.innerJoin(audioContent.member, member) .innerJoin(audioContent.member, member)
.where(where) .where(where)
.groupBy(audioContent.id) .groupBy(audioContent.id)
@ -384,6 +386,7 @@ class RankingRepository(
.and(audioContent.isActive.isTrue) .and(audioContent.isActive.isTrue)
.and(audioContent.duration.isNotNull) .and(audioContent.duration.isNotNull)
.and(audioContent.limited.isNull) .and(audioContent.limited.isNull)
.and(audioContentTheme.isActive.isTrue)
.and(order.isActive.isTrue) .and(order.isActive.isTrue)
.and(member.id.eq(creatorId)) .and(member.id.eq(creatorId))
@ -406,6 +409,7 @@ class RankingRepository(
) )
.from(order) .from(order)
.innerJoin(order.audioContent, audioContent) .innerJoin(order.audioContent, audioContent)
.innerJoin(audioContent.theme, audioContentTheme)
.innerJoin(audioContent.member, member) .innerJoin(audioContent.member, member)
.where(where) .where(where)
.groupBy(audioContent.id) .groupBy(audioContent.id)