Skip to content

Commit

Permalink
update :: email로만 user를 찾도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ani2689 committed Sep 1, 2024
1 parent 149bc6d commit 6459d1c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ class AdminServiceImpl(
val instructorName = row.getCell(2).stringCellValue
val instructorEmail = row.getCell(3).stringCellValue

val instructor = userRepository.findByNameAndEmail(instructorName, instructorEmail)
?: throw UserNotFoundException("존재하지 않는 강사입니다. info : [ name = $instructorName, email = $instructorEmail ]")
val instructor = userRepository.findByEmail(instructorEmail)
?: throw UserNotFoundException("존재하지 않는 강사입니다. info : [ email = $instructorEmail ]")

val type = row.getCell(4).stringCellValue
val credit = row.getCell(5).numericCellValue.toInt()
Expand Down

0 comments on commit 6459d1c

Please sign in to comment.