Skip to content

Commit

Permalink
fix bot user name
Browse files Browse the repository at this point in the history
  • Loading branch information
charlykeyko committed Nov 17, 2023
1 parent 1c9bd6f commit e1fdc7d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fplus-lib/src/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,11 @@ impl LDNApplication {
let validated_at = application_file.lifecycle.validated_at.clone();
let app_state = application_file.lifecycle.get_state();
let valid_rkh = Self::fetch_rkh().await?;
let bot_user = get_env_var_or_default("FILPLUS_ENV", "dev");
let bot_user = if get_env_var_or_default("FILPLUS_ENV", "dev") == "prod" {
PROD_BOT_USER
} else {
DEV_BOT_USER
};
let res: bool = match app_state {
AppState::Submitted => return Ok(false),
AppState::ReadyToSign => {
Expand Down

0 comments on commit e1fdc7d

Please sign in to comment.