diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/content/comment/AudioContentCommentService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/content/comment/AudioContentCommentService.kt index fb6f527..9dd6a27 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/content/comment/AudioContentCommentService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/content/comment/AudioContentCommentService.kt @@ -67,18 +67,19 @@ class AudioContentCommentService( val audioContentComment = repository.findByIdOrNull(request.commentId) ?: throw SodaException("잘못된 접근 입니다.\n확인 후 다시 시도해 주세요.") - if (audioContentComment.audioContent!!.member!!.id!! != member.id!!) { - if (audioContentComment.member == null || audioContentComment.member!!.id!! != member.id!!) { - throw SodaException("잘못된 접근 입니다.\n확인 후 다시 시도해 주세요.") - } - + if (audioContentComment.id!! == member.id!!) { if (request.comment != null) { audioContentComment.comment = request.comment } } - if (request.isActive != null) { - audioContentComment.isActive = request.isActive + if ( + audioContentComment.id!! == member.id!! || + audioContentComment.audioContent!!.member!!.id!! != member.id!! + ) { + if (request.isActive != null) { + audioContentComment.isActive = request.isActive + } } }