File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
dp-inntekt-api/src/main/kotlin/no/nav/dagpenger/inntekt Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ internal fun Application.inntektApi(
76
76
install(StatusPages ) {
77
77
exception<Throwable > { call, cause ->
78
78
LOGGER .error(" Request failed!" , cause)
79
+ LOGGER .error(" Request failed! Cause: ${cause.message} " )
79
80
val error =
80
81
Problem (
81
82
type = URI (" urn:dp:error:inntekt" ),
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ internal class PostgresInntektStore(
95
95
96
96
override fun getInntektPersonMapping (inntektId : String ): InntektPersonMapping {
97
97
@Language(" sql" )
98
- val statement = " SELECT * FROM inntekt_V1_person_mapping WHERE inntektId = :inntektId) " .trimMargin()
98
+ val statement = " SELECT * FROM inntekt_V1_person_mapping WHERE inntektId = :inntektId" .trimMargin()
99
99
100
100
return using(sessionOf(dataSource)) { session ->
101
101
session.run (
@@ -105,7 +105,7 @@ internal class PostgresInntektStore(
105
105
).map { row ->
106
106
InntektPersonMapping (
107
107
inntektId = InntektId (row.string(" inntektid" )),
108
- aktørId = row.string(" aktorid " ),
108
+ aktørId = row.string(" aktørid " ),
109
109
fnr = row.string(" fnr" ),
110
110
kontekstId = row.string(" kontekstid" ),
111
111
beregningsdato = row.zonedDateTime(" beregningsdato" ).toLocalDate(),
You can’t perform that action at this time.
0 commit comments