Skip to content

Commit

Permalink
chore: using veilederIdent instead of email
Browse files Browse the repository at this point in the history
Co-authored-by: Natalie Uranes <natalie.uranes@gmail.com>
  • Loading branch information
jaflaten and nuranes committed Dec 5, 2024
1 parent 824dc51 commit a83ba5a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class NasjonalSykmeldingService(
sykmeldingId = sykmeldingId,
sykmelder = sykmelder,
navEnhet = navEnhet,
veileder = Veileder(oppgaveSecurityService.getNavEmail()),
veileder = oppgaveSecurityService.getNavIdent(),
avvist = false,
oppgave = null,
)
Expand All @@ -112,7 +112,7 @@ class NasjonalSykmeldingService(
avvisningsgrunn: String?,
): ResponseEntity<Any> {
if (validationResult.status == Status.OK || validationResult.status == Status.MANUAL_PROCESSING) {
val veileder = Veileder(oppgaveSecurityService.getNavEmail())
val veileder = oppgaveSecurityService.getNavIdent()
if (ferdigstillRegistrering.oppgaveId != null) {
journalpostService.ferdigstillNasjonalJournalpost(
ferdigstillRegistrering = ferdigstillRegistrering,
Expand Down

0 comments on commit a83ba5a

Please sign in to comment.