Compare commits
No commits in common. "79f5a0f520739e8e60dc209dcb2bfce8ec91ee45" and "7f6c0f7f042589e773d4df9cf0765a1ebaef3f2e" have entirely different histories.
79f5a0f520
...
7f6c0f7f04
|
@ -138,7 +138,8 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
|
||||||
return queryFactory
|
return queryFactory
|
||||||
.selectFrom(audioContent)
|
.selectFrom(audioContent)
|
||||||
.where(
|
.where(
|
||||||
audioContent.id.eq(contentId)
|
audioContent.isActive.isTrue
|
||||||
|
.and(audioContent.id.eq(contentId))
|
||||||
.and(audioContent.member.id.eq(creatorId))
|
.and(audioContent.member.id.eq(creatorId))
|
||||||
)
|
)
|
||||||
.fetchOne()
|
.fetchOne()
|
||||||
|
|
|
@ -760,10 +760,6 @@ class AudioContentService(
|
||||||
val audioContent = repository.findByIdAndCreatorId(contentId = contentId, creatorId = member.id!!)
|
val audioContent = repository.findByIdAndCreatorId(contentId = contentId, creatorId = member.id!!)
|
||||||
?: throw SodaException("잘못된 콘텐츠 입니다.\n다시 시도해 주세요.")
|
?: throw SodaException("잘못된 콘텐츠 입니다.\n다시 시도해 주세요.")
|
||||||
|
|
||||||
if (audioContent.releaseDate != null && audioContent.releaseDate!! >= LocalDateTime.now()) {
|
|
||||||
throw SodaException("콘텐츠 오픈 후 채널에 고정이 가능합니다.")
|
|
||||||
}
|
|
||||||
|
|
||||||
var pinContent = pinContentRepository.findByContentIdAndMemberId(
|
var pinContent = pinContentRepository.findByContentIdAndMemberId(
|
||||||
contentId = contentId,
|
contentId = contentId,
|
||||||
memberId = member.id!!
|
memberId = member.id!!
|
||||||
|
|
Loading…
Reference in New Issue