Skip to content

Commit

Permalink
Rename to document
Browse files Browse the repository at this point in the history
  • Loading branch information
AudunSorheim committed Nov 13, 2023
1 parent 183f8f2 commit 4478a70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/no/nav/syfo/api/dto/Aktivitetsplikt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ data class Aktivitetsplikt(
val sistVurdert: LocalDateTime?,
val fristDato: LocalDateTime?,
val journalpostId: String?,
val dokument: List<DocumentComponentDTO>?,
val document: List<DocumentComponentDTO>?,
)
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ class AktivitetspliktRowMapper : RowMapper<Aktivitetsplikt> {
val sistVurdert: Timestamp? = rs.getTimestamp("sist_vurdert")
val fristDato: Timestamp? = rs.getTimestamp("svarfrist")
val journalpostId: String? = rs.getString("journalpost_id")
val dokument: String? = rs.getString("document")
val document: String? = rs.getString("document")

return Aktivitetsplikt(
status = AktivitetspliktStatus.valueOf(status),
arsaker = arsaker?.split(",") ?: emptyList(),
sistVurdert = sistVurdert?.toZonedLocalDateTime(),
fristDato = fristDato?.toZonedLocalDateTime(),
journalpostId = journalpostId,
dokument = dokument?.let { jsonWriter.readValue(it) }
document = document?.let { jsonWriter.readValue(it) }
)
}
}

0 comments on commit 4478a70

Please sign in to comment.