Skip to content

Commit

Permalink
chore(notifications): provide default value of EMAIL_PASSWORD
Browse files Browse the repository at this point in the history
  • Loading branch information
thevaibhav-dixit authored and UncleSamtoshi committed Feb 19, 2024
1 parent 216d215 commit 9d6313c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/notifications/src/cli/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ impl Config {
path: Option<impl AsRef<Path>>,
EnvOverride {
db_con,
kratos_pg_con,
email_password,
kratos_pg_con,
}: EnvOverride,
) -> anyhow::Result<Self> {
let mut config: Config = if let Some(path) = path {
Expand Down
6 changes: 3 additions & 3 deletions core/notifications/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ struct Cli {
config: Option<PathBuf>,
#[clap(env = "PG_CON")]
pg_con: String,
#[clap(env = "EMAIL_PASSWORD", default_value = "password")]
email_password: String,
#[clap(env = "KRATOS_PG_CON")]
kratos_pg_con: Option<String>,
#[clap(env = "EMAIL_PASSWORD")]
email_password: String,
}

pub async fn run() -> anyhow::Result<()> {
Expand All @@ -27,8 +27,8 @@ pub async fn run() -> anyhow::Result<()> {
cli.config,
EnvOverride {
db_con: cli.pg_con,
kratos_pg_con: cli.kratos_pg_con,
email_password: cli.email_password,
kratos_pg_con: cli.kratos_pg_con,
},
)?;

Expand Down

0 comments on commit 9d6313c

Please sign in to comment.