Skip to content

Commit

Permalink
[Fix] UserProfielResponse 데이터 필드 null-safety 적용 (#135)
Browse files Browse the repository at this point in the history
[fix] : UserProfielResponse 데이터 필드 null-safty 적용
  • Loading branch information
ham2174 authored Nov 12, 2024
1 parent 3004df5 commit bedd42e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ fun UserProfileSelectDTO.toUserProfileSelect(): UserProfileSelect =
interest = this.interest.toInterest(),
job = this.job,
height = this.height,
smoking = this.smoking,
alcohol = this.alcohol,
religion = this.religion,
smoking = this.smoking?: "",
alcohol = this.alcohol?: "",
religion = this.religion?: "",
region = this.region.toRegion(),
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ data class UserProfileSelectDTO(
@SerialName("interest") val interest: InterestDto,
@SerialName("job") val job: String,
@SerialName("height") val height: Int,
@SerialName("smoking") val smoking: String,
@SerialName("alcohol") val alcohol: String,
@SerialName("religion") val religion: String,
@SerialName("smoking") val smoking: String?,
@SerialName("alcohol") val alcohol: String?,
@SerialName("religion") val religion: String?,
@SerialName("region") val region: RegionDto,
)

Expand Down

0 comments on commit bedd42e

Please sign in to comment.