오디션 #249

Merged
klaus merged 40 commits from test into main 2025-01-07 17:24:40 +00:00
1 changed files with 4 additions and 2 deletions
Showing only changes of commit bb41a81eb1 - Show all commits

View File

@ -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
}