fix: 라이브 메인 API - 최근 종료한 라이브
- 팔로잉 여부 제거
This commit is contained in:
		| @@ -2,7 +2,6 @@ package kr.co.vividnext.sodalive.api.live | ||||
|  | ||||
| import kr.co.vividnext.sodalive.content.AudioContentService | ||||
| import kr.co.vividnext.sodalive.content.ContentType | ||||
| import kr.co.vividnext.sodalive.explorer.ExplorerQueryRepository | ||||
| import kr.co.vividnext.sodalive.explorer.profile.creatorCommunity.CreatorCommunityService | ||||
| import kr.co.vividnext.sodalive.live.recommend.LiveRecommendService | ||||
| import kr.co.vividnext.sodalive.live.room.LiveRoomService | ||||
| @@ -19,8 +18,7 @@ class LiveApiService( | ||||
|     private val recommendService: LiveRecommendService, | ||||
|     private val creatorCommunityService: CreatorCommunityService, | ||||
|  | ||||
|     private val blockMemberRepository: BlockMemberRepository, | ||||
|     private val explorerQueryRepository: ExplorerQueryRepository | ||||
|     private val blockMemberRepository: BlockMemberRepository | ||||
| ) { | ||||
|     fun fetchData( | ||||
|         isAdultContentVisible: Boolean, | ||||
| @@ -53,16 +51,6 @@ class LiveApiService( | ||||
|         val recommendLiveList = recommendService.getRecommendLive(member) | ||||
|  | ||||
|         val latestFinishedLiveList = liveService.getLatestFinishedLive(member) | ||||
|             .map { | ||||
|                 if (memberId != null) { | ||||
|                     it.following = explorerQueryRepository.getCreatorFollowing( | ||||
|                         creatorId = it.memberId, | ||||
|                         memberId = memberId | ||||
|                     )?.isFollow ?: false | ||||
|                 } | ||||
|  | ||||
|                 it | ||||
|             } | ||||
|  | ||||
|         val replayLive = contentService.getLatestContentByTheme( | ||||
|             theme = listOf("다시듣기"), | ||||
|   | ||||
| @@ -16,8 +16,7 @@ data class GetLatestFinishedLiveResponse( | ||||
|     @JsonProperty("memberId") val memberId: Long, | ||||
|     @JsonProperty("nickname") val nickname: String, | ||||
|     @JsonProperty("profileImageUrl") val profileImageUrl: String, | ||||
|     @JsonProperty("timeAgo") val timeAgo: String, | ||||
|     @JsonProperty("following") var following: Boolean = false | ||||
|     @JsonProperty("timeAgo") val timeAgo: String | ||||
| ) { | ||||
|     constructor(response: GetLatestFinishedLiveQueryResponse) : this( | ||||
|         response.memberId, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user