Skip to content

Commit

Permalink
fix(profile): convert gender to their numerical values (#56)
Browse files Browse the repository at this point in the history
* fix(profile): convert gender to their numerical values

* refactor(profile): run linter
  • Loading branch information
Kuruyia authored Jan 25, 2024
1 parent 29d5bb1 commit 4eb5650
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.linkedout.profile.repository

import com.linkedout.profile.model.Profile
import com.linkedout.profile.model.ProfileStats
import com.linkedout.profile.utils.ProfileGender
import org.springframework.data.r2dbc.repository.Query
import org.springframework.data.repository.reactive.ReactiveCrudRepository
import reactor.core.publisher.Flux
Expand Down Expand Up @@ -44,7 +43,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 +78,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 4eb5650

Please sign in to comment.