Skip to content

Commit

Permalink
bruk behovsmeldingtype i stedet for å prøve å parse ut fra json
Browse files Browse the repository at this point in the history
  • Loading branch information
olesls committed Feb 26, 2024
1 parent 63357f5 commit 23059c7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@ class SoknadMedStatus private constructor(
datoOppdatert,
status,
fullmakt,
formidlerNavn(søknad),
formidlerNavn(søknad, behovsmeldingType),
er_digital,
soknadGjelder,
valgteÅrsaker
)
}
}

private fun formidlerNavn(soknad: JsonNode): String? {
if (soknad["behovsmeldingType"].textValue() == BehovsmeldingType.BRUKERPASSBYTTE.name) {
private fun formidlerNavn(soknad: JsonNode, behovsmeldingType: BehovsmeldingType): String? {
if (behovsmeldingType == BehovsmeldingType.BRUKERPASSBYTTE) {
return null
}
val leveringNode = soknad["soknad"]["levering"]
Expand Down

0 comments on commit 23059c7

Please sign in to comment.