Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
AudunSorheim committed Oct 25, 2023
1 parent fc8d486 commit 05569cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AktivitetspliktRowMapper : RowMapper<Aktivitetsplikt> {

return Aktivitetsplikt(
status = AktivitetspliktStatus.valueOf(status),
arsaker = arsaker.toList(),
arsaker = arsaker?.toList() ?: emptyList(),
sistVurdert = sistVurdert.let { LocalDateTime.parse(sistVurdert) },
fristDato = sistVurdert.let { LocalDateTime.parse(fristDato) },
journalpostId = journalpostId,
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/no/nav/syfo/persistence/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ val jsonWriter = ObjectMapper().apply {

fun List<String>.toStr() = this.joinToString(separator = ",").trim()

fun String?.toList() = this?.split(",")?.toTypedArray()
fun String.toList() = this.split(",").toList()

fun LocalDate.toDate() = Date.valueOf(this)

Expand Down

0 comments on commit 05569cb

Please sign in to comment.