주문목록 - 크리에이터 닉네임 추가 #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,18 +371,19 @@ class ExplorerService(
val cheers = queryRepository.getCheers(request.cheersId)
?: throw SodaException("잘못된 요청입니다.")
if (cheers.creator!!.id!! != member.id!!) {
if (cheers.member!!.id != member.id!!) {
throw SodaException("잘못된 요청입니다.")
}
if (cheers.member!!.id!! == member.id!!) {
if (request.content != null) {
cheers.cheers = request.content
}
}
if (request.isActive != null) {
cheers.isActive = request.isActive
if (
cheers.creator!!.id!! == member.id!! ||
cheers.member!!.id!! == member.id!!
) {
if (request.isActive != null) {
cheers.isActive = request.isActive
}
}
}