추천채널, 팔로잉 채널 API - 나를 차단한 유저는 표시되지 않도록 수정

This commit is contained in:
Klaus 2023-08-31 19:49:05 +09:00
parent 88520dbc7f
commit 8f50d05906
1 changed files with 6 additions and 0 deletions

View File

@ -113,6 +113,9 @@ class LiveRecommendRepository(
.orderBy(Expressions.numberTemplate(Double::class.java, "function('rand')").asc())
.limit(limit)
.fetch()
.asSequence()
.filter { !isBlocked(it.creatorId) }
.toList()
}
fun getOnAirFollowingChannelList(
@ -188,6 +191,9 @@ class LiveRecommendRepository(
.orderBy(Expressions.numberTemplate(Double::class.java, "function('rand')").asc())
.limit(limit)
.fetch()
.asSequence()
.filter { !isBlocked(it.creatorId) }
.toList()
}
fun getCreatorFollowingAllListTotalCount(memberId: Long, isBlocked: (Long) -> Boolean): Int {