Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
akheron committed Feb 13, 2025
1 parent aeaedc6 commit 3a86c15
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
19 changes: 9 additions & 10 deletions service/src/main/kotlin/fi/espoo/evaka/varda/Varda.kt
Original file line number Diff line number Diff line change
Expand Up @@ -236,16 +236,15 @@ data class Maksutieto(
lahdejarjestelma = lahdejarjestelma,
lapsi = lapsi,
huoltajat =
huoltajat
.map { // Avoid sending both henkilotunnus and henkilo_oid, which would cause
// Varda to
// reject the request with error HE004
if (it.henkilotunnus != null && it.henkilo_oid != null) {
it.copy(henkilo_oid = null)
} else {
it
}
},
huoltajat.map {
// Avoid sending both henkilotunnus and henkilo_oid, which would cause Varda to
// reject the request with error HE004
if (it.henkilotunnus != null && it.henkilo_oid != null) {
it.copy(henkilo_oid = null)
} else {
it
}
},
alkamis_pvm = alkamis_pvm,
paattymis_pvm = paattymis_pvm,
maksun_peruste_koodi = maksun_peruste_koodi,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,8 @@ class VardaUpdater(
client.getOrCreateHenkilo(
VardaReadClient.GetOrCreateHenkiloRequest(
etunimet = evakaHenkilo.etunimet,
sukunimi =
evakaHenkilo
.sukunimi, // Avoid sending both henkilotunnus and henkilo_oid (error
// code HE004)
sukunimi = evakaHenkilo.sukunimi,
// Avoid sending both henkilotunnus and henkilo_oid (error code HE004)
henkilotunnus = evakaHenkilo.henkilotunnus,
henkilo_oid =
evakaHenkilo.henkilo_oid.takeIf { evakaHenkilo.henkilotunnus == null },
Expand Down

0 comments on commit 3a86c15

Please sign in to comment.