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,