Skip to content

Commit

Permalink
Merge pull request #251 from navikt/feature/logg-oppdater-grunnlagspa…
Browse files Browse the repository at this point in the history
…kke-request

Lagt til sikker logg av requester for å oppdatere grunnlagspakke
  • Loading branch information
rinnan17 authored Oct 16, 2023
2 parents 3f3eac3 + 2ca3083 commit 628c159
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import io.swagger.v3.oas.annotations.security.SecurityRequirement
import jakarta.validation.Valid
import jakarta.validation.constraints.NotNull
import no.nav.bidrag.grunnlag.ISSUER
import no.nav.bidrag.grunnlag.SECURE_LOGGER
import no.nav.bidrag.grunnlag.service.GrunnlagspakkeService
import no.nav.bidrag.grunnlag.service.HentGrunnlagService
import no.nav.bidrag.transport.behandling.grunnlag.request.HentGrunnlagRequestDto
Expand Down Expand Up @@ -70,6 +71,7 @@ class GrunnlagController(private val grunnlagspakkeService: GrunnlagspakkeServic
ResponseEntity<OppdaterGrunnlagspakkeDto>? {
val grunnlagspakkeOppdatert = grunnlagspakkeService.oppdaterGrunnlagspakke(grunnlagspakkeId, request)
LOGGER.info("Følgende grunnlagspakke ble oppdatert: $grunnlagspakkeId")
SECURE_LOGGER.info("Oppdater grunnlagspakkeId: $grunnlagspakkeId med request: $request")
return ResponseEntity(grunnlagspakkeOppdatert, HttpStatus.OK)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ class GrunnlagspakkeService(
persistenceService.validerGrunnlagspakke(grunnlagspakkeId)
return persistenceService.lukkGrunnlagspakke(grunnlagspakkeId)
}


}

data class PersonIdOgPeriodeRequest(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package no.nav.bidrag.grunnlag.service

import io.micrometer.core.instrument.Counter
import io.micrometer.core.instrument.MeterRegistry
import io.micrometer.core.instrument.simple.SimpleMeterRegistry
import no.nav.bidrag.domain.enums.BarnType
Expand Down

0 comments on commit 628c159

Please sign in to comment.