Skip to content

Commit

Permalink
Fix journalpostId
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitenok committed Dec 18, 2024
1 parent f7e3fe6 commit b637471
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SendForcedAktivitetspliktLetterJob(private val db: DatabaseInterface, priv
var sentForcedLettersAmount = unreadVarslerOverdude.size

unreadVarslerOverdude.forEach { pUtsendtVarsel ->
if (pUtsendtVarsel.eksternReferanse.isNullOrBlank()) {
if (pUtsendtVarsel.journalpostId.isNullOrBlank()) {
log.error("[FORCED PHYSICAL PRINT]: User can not be notified by letter due to missing journalpostId: ${pUtsendtVarsel.eksternReferanse}")
} else {
senderFacade.sendForcedBrevTilFysiskPrint(
Expand All @@ -34,7 +34,7 @@ class SendForcedAktivitetspliktLetterJob(private val db: DatabaseInterface, priv
orgnummer = pUtsendtVarsel.orgnummer,
),
distribusjonsType = DistibusjonsType.VIKTIG,
journalpostId = pUtsendtVarsel.eksternReferanse
journalpostId = pUtsendtVarsel.journalpostId
)
}
sentForcedLettersAmount++
Expand Down

0 comments on commit b637471

Please sign in to comment.