Skip to content

Commit

Permalink
⚗️ Ny env-variabel som kun finnes i dev må hentes nullsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindhagen committed Jul 18, 2024
1 parent b78e4ca commit 85ca132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/no/nav/helse/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
)
)
Expand Down

0 comments on commit 85ca132

Please sign in to comment.