Skip to content

Commit

Permalink
Revert "Hotfix: Det ser ut til at journalpost 628251939 er riktig fer…
Browse files Browse the repository at this point in the history
…digstilt i dokarkiv men kallet “timet ut” før dp-mottak fikk beskjed. Havnet i en feiltilstand. Løser behovet om ferdigstilling manuelt."

This reverts commit 48298c8.
  • Loading branch information
geiralund committed Oct 2, 2023
1 parent 119796c commit f76ae88
Showing 1 changed file with 5 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,12 @@ internal class FerdigstillJournalpostBehovLøser(
"journalpostId" to journalpostId,
),
) {
if (journalpostId == "628251939") {
logger.info { "628251939 er allerede ferdigstilt. " }

packet["@løsning"] = mapOf(
"FerdigstillJournalpost" to mapOf(
"journalpostId" to journalpostId,
),
)
} else {
try {
runBlocking {
journalpostDokarkiv.ferdigstill(journalpostId)
}
} catch (e: JournalpostFeil.JournalpostException) {
ignorerKjenteTilstander(e)
try {
runBlocking {
journalpostDokarkiv.ferdigstill(journalpostId)
}
} catch (e: JournalpostFeil.JournalpostException) {
ignorerKjenteTilstander(e)
}

packet["@løsning"] = mapOf(
Expand Down

0 comments on commit f76ae88

Please sign in to comment.