File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
fplus-http-server/src/router Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -47,20 +47,14 @@ pub async fn create_from_json(file: web::Json<ChangedAllocator>) -> actix_web::R
47
47
} ;
48
48
let owner = model. owner . clone ( ) . unwrap_or_default ( ) . to_string ( ) ;
49
49
let repo = model. repo . clone ( ) . unwrap_or_default ( ) . to_string ( ) ;
50
-
51
- let blockchain_threshold =
52
- match get_multisig_threshold_for_actor ( & model. pathway_addresses . msig ) . await {
53
- Ok ( threshold) => Some ( threshold as i32 ) ,
54
- Err ( _) => None ,
55
- } ;
56
50
57
51
let allocator_model = match allocators_db:: create_or_update_allocator (
58
52
owner. clone ( ) ,
59
53
repo. clone ( ) ,
60
54
None ,
61
55
Some ( model. pathway_addresses . msig ) ,
62
56
verifiers_gh_handles,
63
- blockchain_threshold
57
+ model . multisig_threshold
64
58
) . await {
65
59
Ok ( allocator_model) => allocator_model,
66
60
Err ( e) => return Ok ( HttpResponse :: BadRequest ( ) . body ( e. to_string ( ) ) ) ,
You can’t perform that action at this time.
0 commit comments