주문목록 - 크리에이터 닉네임 추가 #29

Merged
klaus merged 16 commits from test into main 2023-09-08 16:29:31 +00:00
1 changed files with 11 additions and 7 deletions
Showing only changes of commit 27f4d78f0d - Show all commits

View File

@ -67,14 +67,18 @@ 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.member == null ||
(
audioContentComment.member!!.id!! != member.id!! &&
audioContentComment.audioContent!!.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) {