File tree Expand file tree Collapse file tree 3 files changed +5
-19
lines changed Expand file tree Collapse file tree 3 files changed +5
-19
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " fplus-http-server"
3
3
authors = [" jbesraa" , " kokal33" , " clriesco" ]
4
- version = " 1.0.16 "
4
+ version = " 1.0.17 "
5
5
description = " FPlus main http module"
6
6
license = " MIT OR Apache-2.0"
7
7
edition = " 2021"
@@ -20,7 +20,7 @@ actix-cors = "0.6.4"
20
20
reqwest = { version = " 0.11.18" , features = [" json" ] }
21
21
futures = " 0.3.28"
22
22
dotenv = " 0.15.0"
23
- fplus-lib = { path = " ../fplus-lib" , version = " 1.0.16 " }
23
+ fplus-lib = { path = " ../fplus-lib" , version = " 1.0.17 " }
24
24
anyhow = " 1.0.75"
25
25
async-trait = " 0.1.73"
26
26
uuidv4 = " 1.0.0"
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " fplus-lib"
3
3
authors = [" jbesraa" , " kokal33" , " clriesco" ]
4
- version = " 1.0.16 "
4
+ version = " 1.0.17 "
5
5
edition = " 2021"
6
6
description = " FPlus library/helper files"
7
7
license = " MIT OR Apache-2.0"
Original file line number Diff line number Diff line change @@ -27,9 +27,6 @@ use crate::core::application::file::Allocation;
27
27
28
28
pub mod application;
29
29
30
- const DEV_BOT_USER : & str = "filplus-github-bot-read-write[bot]" ;
31
- const PROD_BOT_USER : & str = "filplus-falcon[bot]" ;
32
-
33
30
#[ derive( Deserialize ) ]
34
31
pub struct CreateApplicationInfo {
35
32
pub issue_number : String ,
@@ -778,14 +775,7 @@ impl LDNApplication {
778
775
log:: info!( "- Application is in a valid state!" ) ;
779
776
return Ok ( true ) ;
780
777
}
781
-
782
- // Check if application is in any other state
783
- let bot_user = if get_env_var_or_default ( "FILPLUS_ENV" , "dev" ) == "prod" {
784
- PROD_BOT_USER
785
- } else {
786
- DEV_BOT_USER
787
- } ;
788
-
778
+ let bot_user = get_env_var_or_default ( "BOT_USER" , "filplus-github-bot-read-write[bot]" ) ;
789
779
if author != bot_user {
790
780
log:: warn!( "- Author is not the bot user" ) ;
791
781
return Ok ( false ) ;
@@ -813,11 +803,7 @@ impl LDNApplication {
813
803
let app_state = application_file. lifecycle . get_state ( ) ;
814
804
let active_request_id = application_file. lifecycle . active_request . clone ( ) ;
815
805
let valid_rkh = Self :: fetch_rkh ( ) . await ?;
816
- let bot_user = if get_env_var_or_default ( "FILPLUS_ENV" , "dev" ) == "prod" {
817
- PROD_BOT_USER
818
- } else {
819
- DEV_BOT_USER
820
- } ;
806
+ let bot_user = get_env_var_or_default ( "BOT_USER" , "filplus-github-bot-read-write[bot]" ) ;
821
807
822
808
let res: bool = match app_state {
823
809
AppState :: Submitted => {
You can’t perform that action at this time.
0 commit comments