오디션 배역 수정
- 배역 이름과 배역 정보 유효성 검사 추가
This commit is contained in:
		| @@ -50,11 +50,13 @@ class AdminAuditionRoleService( | ||||
|         val auditionRole = repository.findByIdOrNull(id = request.id) | ||||
|             ?: throw SodaException("잘못된 요청입니다.\n다시 시도해 주세요.") | ||||
|  | ||||
|         if (!request.name.isNullOrBlank() && request.name.length > 2) { | ||||
|         if (!request.name.isNullOrBlank()) { | ||||
|             if (request.name.length < 2) throw SodaException("배역 이름은 최소 2글자 입니다") | ||||
|             auditionRole.name = request.name | ||||
|         } | ||||
|  | ||||
|         if (!request.information.isNullOrBlank() && request.information.length >= 10) { | ||||
|         if (!request.information.isNullOrBlank()) { | ||||
|             if (request.information.length < 10) throw SodaException("오디션 배역 정보는 최소 10글자 입니다") | ||||
|             auditionRole.information = request.information | ||||
|         } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user