parent
44dfa45ca8
commit
bb41a81eb1
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue