Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ internal fun Application.inntektApi(
install(StatusPages) {
exception<Throwable> { call, cause ->
LOGGER.error("Request failed!", cause)
LOGGER.error("Request failed! Cause: ${cause.message}")
val error =
Problem(
type = URI("urn:dp:error:inntekt"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ internal class PostgresInntektStore(

override fun getInntektPersonMapping(inntektId: String): InntektPersonMapping {
@Language("sql")
val statement = "SELECT * FROM inntekt_V1_person_mapping WHERE inntektId = :inntektId)".trimMargin()
val statement = "SELECT * FROM inntekt_V1_person_mapping WHERE inntektId = :inntektId".trimMargin()

return using(sessionOf(dataSource)) { session ->
session.run(
Expand All @@ -105,7 +105,7 @@ internal class PostgresInntektStore(
).map { row ->
InntektPersonMapping(
inntektId = InntektId(row.string("inntektid")),
aktørId = row.string("aktorid"),
aktørId = row.string("aktørid"),
fnr = row.string("fnr"),
kontekstId = row.string("kontekstid"),
beregningsdato = row.zonedDateTime("beregningsdato").toLocalDate(),
Expand Down
Loading