Skip to content

Commit

Permalink
F - Bruker ny versjon av hasUforePensjonType fra ep-eux
Browse files Browse the repository at this point in the history
  • Loading branch information
dskarpas committed Aug 15, 2024
1 parent 9687221 commit 562e67f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ dependencies {
implementation("com.google.cloud:google-cloud-storage:2.40.1")

// Eessi pensjon biblioteker
implementation("no.nav.eessi.pensjon:ep-eux:2.2.79")
implementation("no.nav.eessi.pensjon:ep-eux:2.2.80")
implementation("no.nav.eessi.pensjon:ep-metrics:2.0.75")
implementation("no.nav.eessi.pensjon:ep-logging:2.1.72")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,10 +492,7 @@ class JournalforingService(
enPersonOgUforeAlderUnder62: Boolean,
saksInfo: SaksInfoSamlet?
): Tema {
val isUforeP12000 = currentSed?.let { sed ->
sed.type == SedType.P12000 && (sed as P12000).harUforePensjonType()
} ?: false

val isUforeP12000 = (currentSed as? P12000)?.hasUforePensjonType() ?: false
val isUforeSakType = saksInfo?.saktype == UFOREP

return if (isUforeP12000 || enPersonOgUforeAlderUnder62 || isUforeSakType) {
Expand Down

0 comments on commit 562e67f

Please sign in to comment.