Skip to content

Commit

Permalink
Fikser task for å rute journalpost for KS der hvor tasken ikke har pe…
Browse files Browse the repository at this point in the history
…rsonIdent (#1112)
  • Loading branch information
stigebil authored Jun 18, 2024
1 parent 92b5c13 commit 1167122
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,11 @@ class JournalhendelseKontantstøtteRutingTask(
val tema = Tema.KON

override fun doTask(task: Task) {
val brukersIdent = task.metadata["personIdent"] as String

val journalpost = journalpostClient.hentJournalpost(task.metadata["journalpostId"] as String)
val brukersIdent = tilPersonIdent(journalpost.bruker!!, tema)
val journalførendeEnhet = journalpost.journalforendeEnhet

val fagsakId by lazy { ksSakClient.hentFagsaknummerPåPersonident(tilPersonIdent(journalpost.bruker!!, tema)) }
val fagsakId by lazy { ksSakClient.hentFagsaknummerPåPersonident(brukersIdent) }

val harÅpenBehandlingIFagsak by lazy { ksSakClient.hentMinimalRestFagsak(fagsakId).finnesÅpenBehandlingPåFagsak() }
val harLøpendeSakIInfotrygd = harLøpendeSakIInfotrygd(brukersIdent)
Expand Down

0 comments on commit 1167122

Please sign in to comment.