test #257

Merged
klaus merged 15 commits from test into main 2025-02-09 13:36:21 +00:00
1 changed files with 16 additions and 8 deletions
Showing only changes of commit 27deff3ff3 - Show all commits

View File

@ -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,