Skip to content

Commit

Permalink
Make tom in Periode accepts null.
Browse files Browse the repository at this point in the history
  • Loading branch information
MalazAlkoj committed Sep 3, 2024
1 parent 2a4bdf8 commit d0c7254
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/aareg/Periode.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import java.io.Serializable
@Suppress("SerialVersionUIDInSerializableClass")
data class Periode(
var fom: String,
var tom: String
var tom: String? = null
) : Serializable
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ class ArbeidsforholdService(
.filter { arbeidsforhold -> arbeidsforhold.arbeidsgiver!!.organisasjonsnummer.equals(orgnummer) }
.filter { arbeidsforhold ->
arbeidsforhold.ansettelsesperiode!!.periode.tom == null ||
!arbeidsforhold.ansettelsesperiode!!.periode.tom.tilLocalDate()
.isBefore(fom)
!arbeidsforhold.ansettelsesperiode!!.periode.tom?.tilLocalDate()
?.isBefore(fom)!!
}
.flatMap { arbeidsforhold ->
arbeidsforhold.arbeidsavtaler!!
Expand Down

0 comments on commit d0c7254

Please sign in to comment.