test #257
|
@ -83,15 +83,23 @@ class AudioContentMainTabHomeService(
|
|||
endDate = endDate.minusDays(1)
|
||||
)
|
||||
|
||||
val salesRankContentList = rankingService.fetchCreatorContentBySalesTop2(
|
||||
creatorId = contentRankCreatorList[0].creatorId,
|
||||
isAdult = member.auth != null
|
||||
)
|
||||
val salesRankContentList = if (contentRankCreatorList.isNotEmpty()) {
|
||||
rankingService.fetchCreatorContentBySalesTop2(
|
||||
creatorId = contentRankCreatorList[0].creatorId,
|
||||
isAdult = member.auth != null
|
||||
)
|
||||
} else {
|
||||
emptyList()
|
||||
}
|
||||
|
||||
val salesCountRankContentList = rankingService.fetchCreatorContentBySalesCountTop2(
|
||||
creatorId = contentRankCreatorList[0].creatorId,
|
||||
isAdult = member.auth != null
|
||||
)
|
||||
val salesCountRankContentList = if (contentRankCreatorList.isNotEmpty()) {
|
||||
rankingService.fetchCreatorContentBySalesCountTop2(
|
||||
creatorId = contentRankCreatorList[0].creatorId,
|
||||
isAdult = member.auth != null
|
||||
)
|
||||
} else {
|
||||
emptyList()
|
||||
}
|
||||
|
||||
return GetContentMainTabHomeResponse(
|
||||
latestNotice = latestNotice,
|
||||
|
|
Loading…
Reference in New Issue