콘텐츠 상세
- 기존 데이터와의 호환성을 위해 isOnlyRental == true <=> PurchaseOption.RENT_ONLY으로 표현되도록 수정
This commit is contained in:
		@@ -577,6 +577,18 @@ class AudioContentService(
 | 
			
		||||
            false
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        val isOnlyRental = if (audioContent.purchaseOption == PurchaseOption.RENT_ONLY) {
 | 
			
		||||
            true
 | 
			
		||||
        } else {
 | 
			
		||||
            audioContent.isOnlyRental
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        val purchaseOption = if (audioContent.isOnlyRental) {
 | 
			
		||||
            PurchaseOption.RENT_ONLY
 | 
			
		||||
        } else {
 | 
			
		||||
            audioContent.purchaseOption
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return GetAudioContentDetailResponse(
 | 
			
		||||
            contentId = audioContent.id!!,
 | 
			
		||||
            title = audioContent.title,
 | 
			
		||||
@@ -594,9 +606,9 @@ class AudioContentService(
 | 
			
		||||
            isActivePreview = audioContent.isGeneratePreview,
 | 
			
		||||
            isAdult = audioContent.isAdult,
 | 
			
		||||
            isMosaic = audioContent.isAdult && member.auth == null,
 | 
			
		||||
            isOnlyRental = audioContent.isOnlyRental,
 | 
			
		||||
            isOnlyRental = isOnlyRental,
 | 
			
		||||
            existOrdered = isExistsAudioContent,
 | 
			
		||||
            purchaseOption = audioContent.purchaseOption,
 | 
			
		||||
            purchaseOption = purchaseOption,
 | 
			
		||||
            orderType = orderType,
 | 
			
		||||
            remainingTime = remainingTime,
 | 
			
		||||
            creatorOtherContentList = creatorOtherContentList,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user