내 콘텐츠 수정, 삭제 시 콘텐츠 조회 함수
- 내 콘텐츠는 비활성화 된 콘텐츠도 조회할 수 있도록 수정
This commit is contained in:
		| @@ -138,8 +138,7 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) | ||||
|         return queryFactory | ||||
|             .selectFrom(audioContent) | ||||
|             .where( | ||||
|                 audioContent.isActive.isTrue | ||||
|                     .and(audioContent.id.eq(contentId)) | ||||
|                 audioContent.id.eq(contentId) | ||||
|                     .and(audioContent.member.id.eq(creatorId)) | ||||
|             ) | ||||
|             .fetchOne() | ||||
|   | ||||
| @@ -760,6 +760,10 @@ class AudioContentService( | ||||
|         val audioContent = repository.findByIdAndCreatorId(contentId = contentId, creatorId = member.id!!) | ||||
|             ?: throw SodaException("잘못된 콘텐츠 입니다.\n다시 시도해 주세요.") | ||||
|  | ||||
|         if (audioContent.releaseDate != null && audioContent.releaseDate!! >= LocalDateTime.now()) { | ||||
|             throw SodaException("콘텐츠 오픈 후 채널에 고정이 가능합니다.") | ||||
|         } | ||||
|  | ||||
|         var pinContent = pinContentRepository.findByContentIdAndMemberId( | ||||
|             contentId = contentId, | ||||
|             memberId = member.id!! | ||||
|   | ||||
		Reference in New Issue
	
	Block a user