diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt index 34923ec..f466859 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt @@ -150,8 +150,11 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) SortType.PRICE_LOW -> audioContent.price.asc() } - var where = audioContent.isActive.isTrue - .and(audioContent.member.id.eq(creatorId)) + var where = audioContent.member.id.eq(creatorId) + .and( + audioContent.isActive.isTrue + .or(audioContent.releaseDate.isNotNull) + ) if (!isAdult) { where = where.and(audioContent.isAdult.isFalse) @@ -170,8 +173,11 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) creatorId: Long, isAdult: Boolean ): Int { - var where = audioContent.isActive.isTrue - .and(audioContent.member.id.eq(creatorId)) + var where = audioContent.member.id.eq(creatorId) + .and( + audioContent.isActive.isTrue + .or(audioContent.releaseDate.isNotNull) + ) if (!isAdult) { where = where.and(audioContent.isAdult.isFalse)