From 20938e7d43adacd146e39e2bd37dac6156a38af1 Mon Sep 17 00:00:00 2001 From: Klaus Date: Fri, 13 Sep 2024 12:21:07 +0900 Subject: [PATCH] =?UTF-8?q?=ED=81=AC=EB=A6=AC=EC=97=90=EC=9D=B4=ED=84=B0?= =?UTF-8?q?=20=ED=94=84=EB=A1=9C=ED=95=84=20API=20-=20=EC=95=8C=EB=A6=BC?= =?UTF-8?q?=EA=B3=BC=20=ED=8C=94=EB=A1=9C=EC=9A=B0=20=EC=83=81=ED=83=9C?= =?UTF-8?q?=EA=B0=92=20null=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vividnext/sodalive/explorer/ExplorerQueryRepository.kt | 2 +- .../kr/co/vividnext/sodalive/explorer/ExplorerService.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerQueryRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerQueryRepository.kt index 8ba7e48..9de8a29 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerQueryRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerQueryRepository.kt @@ -46,7 +46,7 @@ class ExplorerQueryRepository( @Value("\${cloud.aws.cloud-front.host}") private val cloudFrontHost: String ) { - fun getCreatorFollowing(creatorId: Long, memberId: Long): GetCreatorFollowingResponse { + fun getCreatorFollowing(creatorId: Long, memberId: Long): GetCreatorFollowingResponse? { return queryFactory .select(QGetCreatorFollowingResponse(creatorFollowing.isActive, creatorFollowing.isNotify)) .from(creatorFollowing) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt index e40e2b6..7ec998c 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt @@ -223,9 +223,9 @@ class ExplorerService( youtubeUrl = creatorAccount.youtubeUrl, websiteUrl = creatorAccount.websiteUrl, blogUrl = creatorAccount.blogUrl, - isFollow = creatorFollowing.isFollow, - isNotify = creatorFollowing.isNotify, - isNotification = creatorFollowing.isFollow, + isFollow = creatorFollowing?.isFollow ?: false, + isNotify = creatorFollowing?.isNotify ?: false, + isNotification = creatorFollowing?.isFollow ?: false, notificationRecipientCount = notificationRecipientCount ), userDonationRanking = memberDonationRanking,