Skip to content

Commit

Permalink
Fixed formatting errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvind-wedoe committed Feb 1, 2022
1 parent 7d19049 commit 70ffc7b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
39 changes: 18 additions & 21 deletions src/main/kotlin/no/nav/klage/clients/KlageKafkaConsumer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,29 +40,26 @@ class KlageKafkaConsumer(
klageAnke.logIt()

val journalpostIdResponse =
try {
if (klageAnke.isKlage()) {
klageDittnavAPIClient.getJournalpostForKlageId(klageAnke.id)
} else {
klageDittnavAPIClient.getJournalpostForAnkeInternalSaksnummer(klageAnke.internalSaksnummer!!)
}
} catch (e: WebClientResponseException.NotFound) {
slackClient.postMessage(
"Innsending med id ${klageAnke.id} fins ikke i klage-dittnav-api. Undersøk dette nærmere!",
Severity.ERROR
)
logger.error("Input has id not found in klage-dittnav-api. See more details in secure log.")
secureLogger.error("Input has id not found in klage-dittnav-api,", klageAnke)
if (naisCluster == "dev-gcp") {
return
} else{
throw RuntimeException("Input not found in klage-dittnav-api!")
try {
if (klageAnke.isKlage()) {
klageDittnavAPIClient.getJournalpostForKlageId(klageAnke.id)
} else {
klageDittnavAPIClient.getJournalpostForAnkeInternalSaksnummer(klageAnke.internalSaksnummer!!)
}
} catch (e: WebClientResponseException.NotFound) {
slackClient.postMessage(
"Innsending med id ${klageAnke.id} fins ikke i klage-dittnav-api. Undersøk dette nærmere!",
Severity.ERROR
)
logger.error("Input has id not found in klage-dittnav-api. See more details in secure log.")
secureLogger.error("Input has id not found in klage-dittnav-api,", klageAnke)
if (naisCluster == "dev-gcp") {
return
} else {
throw RuntimeException("Input not found in klage-dittnav-api!")
}
}

}



if (klageAnke.containsDeprecatedFields()) {
slackClient.postMessage(
"Nylig mottatt innsending med id ${klageAnke.id} har utdatert modell.",
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/no/nav/klage/domain/KlageAnkeInput.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ data class KlageAnkeInput(
var fileContentAsBytes: ByteArray? = null,
//deprecated, only used to parse old kafka entries
val saksnummer: String? = null,
//deprecated, only used to parse old kafka entries
val booleanUserChoices: List<String>? = emptyList(),
val userChoices: List<String>? = emptyList(),
val userSaksnummer: String?,
Expand Down

0 comments on commit 70ffc7b

Please sign in to comment.