From 85ca132efe85568d28060fa7d4591e23fc880369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Hagen?= Date: Thu, 18 Jul 2024 12:36:04 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=97=EF=B8=8F=20Ny=20env-variabel=20som=20?= =?UTF-8?q?kun=20finnes=20i=20dev=20m=C3=A5=20hentes=20nullsafe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/no/nav/helse/Config.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/no/nav/helse/Config.kt b/src/main/kotlin/no/nav/helse/Config.kt index 3a086d2..ea3b76b 100644 --- a/src/main/kotlin/no/nav/helse/Config.kt +++ b/src/main/kotlin/no/nav/helse/Config.kt @@ -8,7 +8,7 @@ fun setUpEnvironment() = Environment( databasePort = System.getenv("DATABASE_PORT"), username = System.getenv("DATABASE_USERNAME"), password = System.getenv("DATABASE_PASSWORD"), - databaseJdbcUrl = System.getenv("DATABASE_JDBC_URL"), + databaseJdbcUrl = System.getenv()["DATABASE_JDBC_URL"] ?: "", clusterName = System.getenv("NAIS_CLUSTER_NAME"), ) )