Skip to content

Commit

Permalink
Find best timestamp for previous history event.
Browse files Browse the repository at this point in the history
Co-authored-by: Øyvind Nordsted Wedøe <[email protected]>
  • Loading branch information
flexable777 and oyvind-wedoe committed Dec 8, 2023
1 parent 5aa3bbf commit 6db3504
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ object BehandlingSetters {
//record initial state
if (tildelingHistorikk.isEmpty()) {
recordTildelingHistory(
tidspunkt = created,
tidspunkt = gammelVerdiTidspunkt ?: created,
utfoerendeIdent = null,
fradelingReason = null,
hjemmelIdList = hjemler.joinToString(",") { it.id },
Expand Down Expand Up @@ -150,7 +150,7 @@ object BehandlingSetters {
//record initial history
if (medunderskriverHistorikk.isEmpty()) {
recordMedunderskriverHistory(
tidspunkt = created,
tidspunkt = medunderskriver?.tidspunkt ?: created,
utfoerendeIdent = null,
)
}
Expand Down Expand Up @@ -321,7 +321,7 @@ object BehandlingSetters {
//record initial state
if (sattPaaVentHistorikk.isEmpty()) {
recordSattPaaVentHistory(
tidspunkt = created,
tidspunkt = sattPaaVent?.from?.atStartOfDay() ?: created,
utfoerendeIdent = null,
)
}
Expand Down

0 comments on commit 6db3504

Please sign in to comment.