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

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

View File

@ -371,20 +371,21 @@ class ExplorerService(
val cheers = queryRepository.getCheers(request.cheersId) val cheers = queryRepository.getCheers(request.cheersId)
?: throw SodaException("잘못된 요청입니다.") ?: throw SodaException("잘못된 요청입니다.")
if (cheers.creator!!.id!! != member.id!!) { if (cheers.member!!.id!! == member.id!!) {
if (cheers.member!!.id != member.id!!) {
throw SodaException("잘못된 요청입니다.")
}
if (request.content != null) { if (request.content != null) {
cheers.cheers = request.content cheers.cheers = request.content
} }
} }
if (
cheers.creator!!.id!! == member.id!! ||
cheers.member!!.id!! == member.id!!
) {
if (request.isActive != null) { if (request.isActive != null) {
cheers.isActive = request.isActive cheers.isActive = request.isActive
} }
} }
}
@Transactional @Transactional
fun saveNotice(member: Member, notice: String) { fun saveNotice(member: Member, notice: String) {