Skip to content

Commit

Permalink
Update IdenttypeService.java
Browse files Browse the repository at this point in the history
Rettet bug i forbindelse med overgang til nye opplysningsetyper foedselsdato og foedested
  • Loading branch information
krharum authored Aug 20, 2024
1 parent 0d01275 commit 7a69e02
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import no.nav.pdl.forvalter.exception.InvalidRequestException;
import no.nav.pdl.forvalter.exception.NotFoundException;
import no.nav.pdl.forvalter.utils.DatoFraIdentUtility;
import no.nav.pdl.forvalter.utils.FoedselsdatoUtility;
import no.nav.pdl.forvalter.utils.IdenttypeUtility;
import no.nav.pdl.forvalter.utils.KjoennFraIdentUtility;
import no.nav.pdl.forvalter.utils.SyntetiskFraIdentUtility;
Expand Down Expand Up @@ -67,7 +68,7 @@ public PersonDTO convert(PersonDTO person) {

if (isTrue(type.getIsNew())) {

type.setFoedtEtter(person.getFoedsel().getFirst().getFoedselsdato().plusDays(index + 1L));
type.setFoedtEtter(FoedselsdatoUtility.getFoedselsdato(person).plusDays(index + 1L));

nyPerson = handle(type, nyPerson);
type.setKilde(getKilde(type));
Expand Down

0 comments on commit 7a69e02

Please sign in to comment.