Skip to content

Commit

Permalink
Fiks: Forvaltningendepunkt returnerte ingen ting
Browse files Browse the repository at this point in the history
  • Loading branch information
baskevold committed Sep 2, 2024
1 parent 8a3e135 commit 0ebaf64
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,19 @@ fun Route.forvaltningApis() {
Fagsystem.K9TILBAKE -> {
val k9TilbakeModell = k9tilbakeEventRepository.hent(UUID.fromString(eksternId))
val eventerIkkeSensitive = k9TilbakeModell.eventer.map { event -> K9TilbakeEventIkkeSensitiv(event) }
objectMapper.writeValueAsString(eventerIkkeSensitive)
call.respond(objectMapper.writeValueAsString(eventerIkkeSensitive))
}

Fagsystem.K9KLAGE -> {
val k9KlageModell = k9klageEventRepository.hent(UUID.fromString(eksternId))
val eventerIkkeSensitive = k9KlageModell.eventer.map { event -> K9KlageEventIkkeSensitiv(event) }
objectMapper.writeValueAsString(eventerIkkeSensitive)
call.respond(objectMapper.writeValueAsString(eventerIkkeSensitive))
}

Fagsystem.PUNSJ -> {
val k9PunsjModell = k9PunsjEventK9Repository.hent(UUID.fromString(eksternId))
val eventerIkkeSensitive = k9PunsjModell.eventer.map { event -> K9PunsjEventIkkeSensitiv(event) }
objectMapper.writeValueAsString(eventerIkkeSensitive)
call.respond(objectMapper.writeValueAsString(eventerIkkeSensitive))
}
}
}
Expand Down

0 comments on commit 0ebaf64

Please sign in to comment.