Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
AudunSorheim committed Jan 24, 2024
1 parent dcc7393 commit 4bfdb95
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion nais/nais-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ spec:
- name: OPPFOLGINGSPLAN_FRONTEND_CLIENT_ID
value: dev-gcp:team-esyfo:oppfolgingsplan-frontend
- name: NARMESTELEDER_URL
value: https://isnarmesteleder.intern.dev.nav.no
value: http://isnarmesteleder.teamsykefravr
- name: NARMESTELEDER_CLIENT_ID
value: dev-gcp:teamsykefravr:isnarmesteleder
redis:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ class NarmesteLederClient(
): NarmesteLederRelasjonDTO? {
try {
val narmesteLederRelasjoner = alleAktiveLedereForSykmeldt(ansattFnr)
log.info("Hentet relasjoner")
narmesteLederRelasjoner.forEach { log.info("NarmesteLederRelasjon:" + it.narmesteLederPersonIdentNumber + " " + it.virksomhetsnummer) }

return narmesteLederRelasjoner
.filter { it.narmesteLederPersonIdentNumber == narmesteLederIdent }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ class NarmesteLederController @Autowired constructor(
): ResponseEntity<NarmesteLederRelasjonDTO?> {
metrikk.tellHendelse("get_narmesteledere")

LOG.info("Henter leder for SM $fnr")
LOG.info("Henter leder for org $virksomhetsnummer")

val innloggetIdent = TokenXUtil.validateTokenXClaims(contextHolder, oppfolgingsplanClientId)
.fnrFromIdportenTokenX()
.value
Expand All @@ -67,12 +64,10 @@ class NarmesteLederController @Autowired constructor(
virksomhetsnummer = virksomhetsnummer
)
if (narmesteLedere != null) {
LOG.info("returnerer noe")
return ResponseEntity
.status(HttpStatus.OK)
.body(narmesteLedere)
} else {
LOG.info("returnerer ingenting")
return ResponseEntity
.status(HttpStatus.NO_CONTENT)
.build()
Expand Down

0 comments on commit 4bfdb95

Please sign in to comment.