응원 수정 기능 리팩토링
This commit is contained in:
		| @@ -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) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user