fix(explorer): 크리에이터 프로필 응답에서 activitySummary 필드를 제거한다
This commit is contained in:
@@ -405,23 +405,6 @@ class ExplorerService(
|
|||||||
listOf()
|
listOf()
|
||||||
}
|
}
|
||||||
|
|
||||||
// 차단한 크리에이터 인지 체크
|
|
||||||
val activitySummary = if (isCreator) {
|
|
||||||
// 활동요약 (라이브 횟수, 라이브 시간, 라이브 참여자, 콘텐츠 수)
|
|
||||||
val liveCount = queryRepository.getLiveCount(creatorId) ?: 0
|
|
||||||
val liveTime = queryRepository.getLiveTime(creatorId)
|
|
||||||
val liveContributorCount = queryRepository.getLiveContributorCount(creatorId) ?: 0
|
|
||||||
val contentCount = queryRepository.getContentCount(creatorId) ?: 0
|
|
||||||
GetCreatorActivitySummary(
|
|
||||||
liveCount = liveCount,
|
|
||||||
liveTime = liveTime,
|
|
||||||
liveContributorCount = liveContributorCount,
|
|
||||||
contentCount = contentCount
|
|
||||||
)
|
|
||||||
} else {
|
|
||||||
GetCreatorActivitySummary(0, 0, 0, 0)
|
|
||||||
}
|
|
||||||
|
|
||||||
val seriesList = if (isCreator && !isBlock) {
|
val seriesList = if (isCreator && !isBlock) {
|
||||||
seriesService
|
seriesService
|
||||||
.getSeriesList(
|
.getSeriesList(
|
||||||
@@ -467,7 +450,6 @@ class ExplorerService(
|
|||||||
communityPostList = communityPostList,
|
communityPostList = communityPostList,
|
||||||
channelDonationList = channelDonationList,
|
channelDonationList = channelDonationList,
|
||||||
cheers = cheers,
|
cheers = cheers,
|
||||||
activitySummary = activitySummary,
|
|
||||||
seriesList = seriesList,
|
seriesList = seriesList,
|
||||||
isBlock = isBlock,
|
isBlock = isBlock,
|
||||||
isCreatorRole = isCreator
|
isCreatorRole = isCreator
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ data class GetCreatorProfileResponse(
|
|||||||
val communityPostList: List<GetCommunityPostListResponse>,
|
val communityPostList: List<GetCommunityPostListResponse>,
|
||||||
val channelDonationList: List<GetChannelDonationListItem>,
|
val channelDonationList: List<GetChannelDonationListItem>,
|
||||||
val cheers: GetCheersResponse,
|
val cheers: GetCheersResponse,
|
||||||
val activitySummary: GetCreatorActivitySummary,
|
|
||||||
val seriesList: List<GetSeriesListResponse.SeriesListItem>,
|
val seriesList: List<GetSeriesListResponse.SeriesListItem>,
|
||||||
val isBlock: Boolean,
|
val isBlock: Boolean,
|
||||||
val isCreatorRole: Boolean
|
val isCreatorRole: Boolean
|
||||||
|
|||||||
Reference in New Issue
Block a user