응원 수정 기능 리팩토링
This commit is contained in:
		| @@ -371,20 +371,21 @@ 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 ( | ||||
|             cheers.creator!!.id!! == member.id!! || | ||||
|             cheers.member!!.id!! == member.id!! | ||||
|         ) { | ||||
|             if (request.isActive != null) { | ||||
|                 cheers.isActive = request.isActive | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     @Transactional | ||||
|     fun saveNotice(member: Member, notice: String) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user