fix(recommendation): 홈 추천 query offset 범위를 확장한다

This commit is contained in:
2026-06-27 05:11:51 +09:00
parent 24e217e8ee
commit c028aa4002
3 changed files with 19 additions and 19 deletions

View File

@@ -51,7 +51,7 @@ class DefaultHomeRecommendationQueryRepository(
private val entityManager: EntityManager
) : HomeRecommendationQueryRepository {
override fun findLiveRecommendations(
offset: Int,
offset: Long,
limit: Int,
memberId: Long?,
includeAdultLives: Boolean
@@ -79,7 +79,7 @@ class DefaultHomeRecommendationQueryRepository(
member.isActive.isTrue
)
.orderBy(liveRoom.beginDateTime.desc(), liveRoom.id.desc())
.offset(offset.toLong())
.offset(offset)
.limit(limit.toLong())
.fetch()
}
@@ -211,7 +211,7 @@ class DefaultHomeRecommendationQueryRepository(
override fun findRecentDebutCreators(
now: LocalDateTime,
offset: Int,
offset: Long,
limit: Int,
memberId: Long?,
includeAdultContents: Boolean
@@ -355,7 +355,7 @@ class DefaultHomeRecommendationQueryRepository(
override fun findFirstAudioContents(
now: LocalDateTime,
offset: Int,
offset: Long,
limit: Int,
memberId: Long?,
includeAdultContents: Boolean

View File

@@ -5,7 +5,7 @@ import java.time.LocalDateTime
interface HomeRecommendationQueryPort {
fun findLiveRecommendations(
offset: Int = 0,
offset: Long = 0,
limit: Int,
memberId: Long? = null,
includeAdultLives: Boolean = false
@@ -24,7 +24,7 @@ interface HomeRecommendationQueryPort {
fun findRecentDebutCreators(
now: LocalDateTime,
offset: Int = 0,
offset: Long = 0,
limit: Int,
memberId: Long? = null,
includeAdultContents: Boolean = false
@@ -32,7 +32,7 @@ interface HomeRecommendationQueryPort {
fun findFirstAudioContents(
now: LocalDateTime,
offset: Int = 0,
offset: Long = 0,
limit: Int,
memberId: Long? = null,
includeAdultContents: Boolean = false