Skip to content

Commit

Permalink
merge: (#772) RequestBody Int 필드 nullcheck 안되는 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
zios0707 authored Oct 3, 2024
2 parents 93c2b35 + ea57ef1 commit b82efef
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ class VolunteerWebAdapter(
content = createVolunteerWebRequest.content,
availableGrade = createVolunteerWebRequest.availableGrade,
availableSex = createVolunteerWebRequest.availableSex,
score = createVolunteerWebRequest.score,
optionalScore = createVolunteerWebRequest.optionalScore,
maxApplicants = createVolunteerWebRequest.maxApplicants,
score = createVolunteerWebRequest.score!!,
optionalScore = createVolunteerWebRequest.optionalScore!!,
maxApplicants = createVolunteerWebRequest.maxApplicants!!,
)
)
}
Expand All @@ -108,9 +108,9 @@ class VolunteerWebAdapter(
content = updateVolunteerWebRequest.content,
availableGrade = updateVolunteerWebRequest.availableGrade,
availableSex = updateVolunteerWebRequest.availableSex,
score = updateVolunteerWebRequest.score,
optionalScore = updateVolunteerWebRequest.optionalScore,
maxApplicants = updateVolunteerWebRequest.maxApplicants,
score = updateVolunteerWebRequest.score!!,
optionalScore = updateVolunteerWebRequest.optionalScore!!,
maxApplicants = updateVolunteerWebRequest.maxApplicants!!,
volunteerId = volunteerId
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ data class CreateVolunteerWebRequest(
val availableGrade: AvailableGrade,

@field:NotNull
val score: Int,
val score: Int?,

@field:NotNull
val optionalScore: Int,
val optionalScore: Int?,

@field:NotNull
val maxApplicants: Int
val maxApplicants: Int?
)
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ data class UpdateVolunteerWebRequest(
val availableGrade: AvailableGrade,

@field:NotNull
val score: Int,
val score: Int?,

@field:NotNull
val optionalScore: Int,
val optionalScore: Int?,

@field:NotNull
val maxApplicants: Int
val maxApplicants: Int?
)

0 comments on commit b82efef

Please sign in to comment.