Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
AudunSorheim committed Jan 2, 2025
1 parent e4de0be commit 5aa7ac9
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ import no.nav.syfo.service.SenderFacade.InternalBrukernotifikasjonType
import org.slf4j.LoggerFactory
import java.io.IOException
import java.io.Serializable
import java.net.URI
import java.net.URL
import java.time.LocalDateTime
import java.time.OffsetDateTime
Expand Down Expand Up @@ -152,10 +153,12 @@ class DialogmoteInnkallingVarselService(
}

fun getVarselUrl(varselHendelse: ArbeidstakerHendelse, varselUuid: String): URL {
if (SM_DIALOGMOTE_REFERAT === varselHendelse.type) {
return URL("$dialogmoterUrl/sykmeldt/referat/$varselUuid")
val urlString = if (SM_DIALOGMOTE_REFERAT === varselHendelse.type) {
"$dialogmoterUrl/sykmeldt/referat/$varselUuid"
} else {
"$dialogmoterUrl/sykmeldt/moteinnkalling"
}
return URL("$dialogmoterUrl/sykmeldt/moteinnkalling")
return URI(urlString).toURL()
}

private fun varsleArbeidstakerViaBrukernotifkasjoner(
Expand Down

0 comments on commit 5aa7ac9

Please sign in to comment.