Skip to content

Commit

Permalink
Merge pull request #77 from filecoin-project/fix/bot_user_name
Browse files Browse the repository at this point in the history
fix bot user name
  • Loading branch information
clriesco authored Nov 17, 2023
2 parents 1c9bd6f + e1fdc7d commit 9e2a44e
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 9e2a44e

Please sign in to comment.