Skip to content

Commit

Permalink
fix(profile): convert gender to their numerical values
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuruyia committed Jan 25, 2024
1 parent 29d5bb1 commit 7d722b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ interface ProfileRepository : ReactiveCrudRepository<Profile, UUID> {
userId: UUID,
firstName: String,
lastName: String,
gender: ProfileGender,
gender: Int,
birthday: LocalDate,
nationality: String,
addressFirstLine: String,
Expand Down Expand Up @@ -79,7 +79,7 @@ interface ProfileRepository : ReactiveCrudRepository<Profile, UUID> {
userId: UUID,
firstName: String?,
lastName: String?,
gender: ProfileGender?,
gender: Int?,
birthday: LocalDate?,
nationality: String?,
addressFirstLine: String?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ProfileService(
seasonworkerId,
profile.firstName,
profile.lastName,
profile.gender,
profile.gender.value,
profile.birthday,
profile.nationality,
profile.addressFirstLine,
Expand All @@ -40,7 +40,7 @@ class ProfileService(
seasonworkerId,
profile.firstName,
profile.lastName,
profile.gender,
profile.gender?.value,
profile.birthday,
profile.nationality,
profile.addressFirstLine,
Expand Down

0 comments on commit 7d722b9

Please sign in to comment.