차단 사용자 제외를 조회 쿼리로 통합
홈, 추천 채널, 랭킹 조회에서 차단 사용자 제외를 애플리케이션 필터링 대신 DB 쿼리로 처리한다. 콘텐츠/랭킹/추천 조회 API에 memberId 인자를 전달한다.
This commit is contained in:
@@ -1198,6 +1198,7 @@ class AudioContentService(
|
||||
|
||||
@Transactional(readOnly = true)
|
||||
fun getLatestContentByTheme(
|
||||
memberId: Long? = null,
|
||||
theme: List<String>,
|
||||
contentType: ContentType,
|
||||
offset: Long = 0,
|
||||
@@ -1221,6 +1222,7 @@ class AudioContentService(
|
||||
)
|
||||
|
||||
val contentList = repository.getLatestContentByTheme(
|
||||
memberId = memberId,
|
||||
theme = normalizedTheme,
|
||||
contentType = contentType,
|
||||
offset = offset,
|
||||
|
||||
Reference in New Issue
Block a user