Skip to content

Commit

Permalink
fix: repair support for env variable IZANAMI_PG_USER
Browse files Browse the repository at this point in the history
Fix #943
  • Loading branch information
ptitFicus committed Feb 26, 2025
1 parent 7437abc commit e7c00a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/fr/maif/izanami/env/postgresql.scala
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ class Postgresql(env: Env) {

val maybePgConfig = for(
database <- configuration.getOptional[String]("app.pg.database");
user <- configuration.getOptional[String]("app.pg.user");
// Retro compatibility : user became username
user <- configuration.getOptional[String]("app.pg.username").orElse(configuration.getOptional[String]("app.pg.user"));
password <- configuration.getOptional[String]("app.pg.password");
host <- configuration.getOptional[String]("app.pg.host");
port <- configuration.getOptional[Int]("app.pg.port")
Expand Down

0 comments on commit e7c00a8

Please sign in to comment.