응원글 - 응원글 삭제로직 추가

This commit is contained in:
2023-09-05 11:18:59 +09:00
parent 27f4d78f0d
commit febfa442fa
5 changed files with 26 additions and 20 deletions

View File

@@ -67,18 +67,14 @@ class AudioContentCommentService(
val audioContentComment = repository.findByIdOrNull(request.commentId)
?: throw SodaException("잘못된 접근 입니다.\n확인 후 다시 시도해 주세요.")
if (
audioContentComment.member == null ||
(
audioContentComment.member!!.id!! != member.id!! &&
audioContentComment.audioContent!!.member!!.id!! != member.id!!
)
) {
throw SodaException("잘못된 접근 입니다.\n확인 후 다시 시도해 주세요.")
}
if (audioContentComment.audioContent!!.member!!.id!! != member.id!!) {
if (audioContentComment.member == null || audioContentComment.member!!.id!! != member.id!!) {
throw SodaException("잘못된 접근 입니다.\n확인 후 다시 시도해 주세요.")
}
if (request.comment != null) {
audioContentComment.comment = request.comment
if (request.comment != null) {
audioContentComment.comment = request.comment
}
}
if (request.isActive != null) {