Skip to content

Commit

Permalink
tar inn alle søknadstyper
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsteinsland committed Nov 24, 2023
1 parent 00c62b6 commit 379d36f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal class SykemeldingRiver(

init {
River(rapidsConnection).apply {
validate { it.demandValue("@event_name", "ny_søknad") }
validate { it.demandAny("@event_name", listOf("ny_søknad", "ny_søknad_frilans", "ny_søknad_selvstendig", "ny_søknad_arbeidsledig")) }
validate { it.requireKey("@id") }
validate { it.requireKey("sykmeldingId") }
validate { it.require("@opprettet", JsonNode::asLocalDateTime) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ class SøknadRiver(

init {
River(rapidsConnection).apply {
validate { it.demandAny("@event_name", listOf("sendt_søknad_nav", "sendt_søknad_arbeidsgiver")) }
validate { it.demandAny("@event_name", listOf("sendt_søknad_nav", "sendt_søknad_arbeidsgiver",
"sendt_søknad_selvstendig", "sendt_søknad_frilans", "sendt_søknad_arbeidsledig")) }
validate { it.requireKey("@id") }
validate { it.requireKey("id") }
validate { it.requireKey("sykmeldingId") }
Expand Down

0 comments on commit 379d36f

Please sign in to comment.