test #327

Merged
klaus merged 13 commits from test into main 2025-07-14 11:07:58 +00:00
1 changed files with 12 additions and 2 deletions
Showing only changes of commit f59f45d9a4 - Show all commits

View File

@ -72,10 +72,20 @@ class RecommendChannelQueryRepository(
)
)
.from(audioContent)
.leftJoin(audioContentLike).on(audioContentLike.audioContent.id.eq(audioContent.id))
.leftJoin(audioContentComment).on(audioContentComment.audioContent.id.eq(audioContent.id))
.leftJoin(audioContentLike)
.on(
audioContentLike.audioContent.id.eq(audioContent.id)
.and(audioContentLike.isActive.isTrue)
)
.leftJoin(audioContentComment)
.on(
audioContentComment.audioContent.id.eq(audioContent.id)
.and(audioContentComment.isActive.isTrue)
)
.where(audioContent.member.id.eq(creatorId))
.groupBy(audioContent.id)
.orderBy(audioContentLike.id.countDistinct().desc())
.limit(3)
.fetch()
}
}