From 2d015d0a3329bbe399045b8f026b4166e23b59dd Mon Sep 17 00:00:00 2001 From: Klaus Date: Thu, 11 Jan 2024 01:40:35 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0=20=EB=A6=AC?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20-=20=EC=BD=98=ED=85=90=EC=B8=A0=20?= =?UTF-8?q?=EB=85=B8=EC=B6=9C=20=EC=A1=B0=EA=B1=B4=20=EB=B3=80=EA=B2=BD=20?= =?UTF-8?q?(=20isActive=EA=B0=80=20true=EC=9D=B4=EA=B1=B0=EB=82=98=20relea?= =?UTF-8?q?seDate=EC=99=80=20duration=EC=9D=B4=20null=20=EC=9D=B4=20?= =?UTF-8?q?=EC=95=84=EB=8B=8C=20=EA=B2=BD=EC=9A=B0=20=EB=85=B8=EC=B6=9C=20?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../co/vividnext/sodalive/content/AudioContentRepository.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 f466859..15a1427 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt @@ -153,7 +153,7 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) var where = audioContent.member.id.eq(creatorId) .and( audioContent.isActive.isTrue - .or(audioContent.releaseDate.isNotNull) + .or(audioContent.releaseDate.isNotNull.and(audioContent.duration.isNotNull)) ) if (!isAdult) { @@ -176,7 +176,7 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) var where = audioContent.member.id.eq(creatorId) .and( audioContent.isActive.isTrue - .or(audioContent.releaseDate.isNotNull) + .or(audioContent.releaseDate.isNotNull.and(audioContent.duration.isNotNull)) ) if (!isAdult) {