Skip to content

Commit

Permalink
Rename fields
Browse files Browse the repository at this point in the history
  • Loading branch information
andersrognstad committed Oct 28, 2024
1 parent d389e35 commit 38a2fae
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,30 +60,30 @@ fun Route.registerDialogmotekandidatApi(
}
}
get(kandidatApiHistorikkPath) {
val personIdent = personIdentHeader()?.let { personIdent ->
val personident = personIdentHeader()?.let { personIdent ->
PersonIdentNumber(personIdent)
}
?: throw IllegalArgumentException("Failed to get historikk for person: No $NAV_PERSONIDENT_HEADER supplied in request header")
validateVeilederAccess(
action = "Get historikk for person",
personIdentToAccess = personIdent,
personIdentToAccess = personident,
veilederTilgangskontrollClient = veilederTilgangskontrollClient,
) {
val dialogmotekandidatEndringer = dialogmotekandidatService.getDialogmotekandidatEndringer(
personIdent = personIdent,
personIdent = personident,
)
val unntak = unntakService.getUnntakList(
personIdent = personIdent,
personIdent = personident,
)
val ikkeAktuell = ikkeAktuellService.getIkkeAktuellList(
personIdent = personIdent,
personIdent = personident,
)
val historikkDTOS = HistorikkDTO.createHistorikkDTOs(
val historikkDTOs = HistorikkDTO.createHistorikkDTOs(
dialogmotekandidatEndringer = dialogmotekandidatEndringer,
unntak = unntak,
ikkeAktuell = ikkeAktuell,
)
call.respond(historikkDTOS)
call.respond(historikkDTOs)
}
}
}
Expand Down

0 comments on commit 38a2fae

Please sign in to comment.