Skip to content

Commit

Permalink
Revert "disabler selvbestemt innsending-endepunkt i produksjon (#584)"
Browse files Browse the repository at this point in the history
This reverts commit 5503bc9.
  • Loading branch information
bjerga committed Jul 17, 2024
1 parent ccdb42e commit 99ac3e0
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import io.ktor.server.routing.routing
import kotlinx.serialization.builtins.serializer
import no.nav.helse.rapids_rivers.RapidApplication
import no.nav.helse.rapids_rivers.RapidsConnection
import no.nav.helsearbeidsgiver.felles.getEnvVar
import no.nav.helsearbeidsgiver.felles.rapidsrivers.registerShutdownLifecycle
import no.nav.helsearbeidsgiver.inntektsmelding.api.aktiveorgnr.aktiveOrgnrRoute
import no.nav.helsearbeidsgiver.inntektsmelding.api.auth.Tilgangskontroll
Expand Down Expand Up @@ -118,12 +117,7 @@ fun Application.apiModule(
inntektSelvbestemtRoute(rapid, tilgangskontroll, redisPoller)
innsendingRoute(rapid, tilgangskontroll, redisPoller)
kvitteringRoute(rapid, tilgangskontroll, redisPoller)
if (getEnvVar("NAIS_CLUSTER_NAME", "") != "prod-gcp") {
lagreSelvbestemtImRoute(rapid, tilgangskontroll, redisPoller)
// TODO: Disablet endepunktet i prod -enable når vi kan sende med vedtaksperiodeID fra flex!
} else {
logger.info("Lagreselvbestemt-endepunktet er disablet i produksjon!")
}
lagreSelvbestemtImRoute(rapid, tilgangskontroll, redisPoller)
hentSelvbestemtImRoute(rapid, tilgangskontroll, redisPoller)
aktiveOrgnrRoute(rapid, redisPoller)
}
Expand Down

0 comments on commit 99ac3e0

Please sign in to comment.