Skip to content

Commit

Permalink
Remove unwanted call for ArbeidsforholdService from NarmesteLederCont…
Browse files Browse the repository at this point in the history
…roller
  • Loading branch information
MalazAlkoj committed Sep 26, 2024
1 parent 6c07975 commit 12713bf
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package no.nav.syfo.narmesteleder

import no.nav.security.token.support.core.api.ProtectedWithClaims
import no.nav.security.token.support.core.context.TokenValidationContextHolder
import no.nav.syfo.aareg.service.ArbeidsforholdService
import no.nav.syfo.auth.tokenx.TokenXUtil
import no.nav.syfo.auth.tokenx.TokenXUtil.TokenXIssuer.TOKENX
import no.nav.syfo.auth.tokenx.TokenXUtil.fnrFromIdportenTokenX
Expand Down Expand Up @@ -33,7 +32,6 @@ class NarmesteLederController @Autowired constructor(
@Value("\${oppfolgingsplan.frontend.client.id}")
private val oppfolgingsplanClientId: String,
private val brukertilgangService: BrukertilgangService,
private val arbeidsforholdService: ArbeidsforholdService,
) {

@ResponseBody
Expand Down Expand Up @@ -86,8 +84,6 @@ class NarmesteLederController @Autowired constructor(
val innloggetIdent = TokenXUtil.validateTokenXClaims(contextHolder, oppfolgingsplanClientId)
.fnrFromIdportenTokenX()
.value
val stillinger = arbeidsforholdService.arbeidstakersStillinger(innloggetIdent)
LOG.info("Hentet alle stillinger from ArbeidsforholdService, totalt ${stillinger.size}")
val narmesteLedere = narmesteLederClient.alleLedereForSykmeldt(ansattFnr = innloggetIdent)
return if (narmesteLedere.isNotEmpty()) {
ResponseEntity
Expand Down

0 comments on commit 12713bf

Please sign in to comment.