Skip to content

Commit fa19b2b

Browse files
committed
get files from public repo without installation id
1 parent d6071f6 commit fa19b2b

File tree

1 file changed

+1
-1
lines changed
  • fplus-lib/src/core/allocator

1 file changed

+1
-1
lines changed

fplus-lib/src/core/allocator/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub async fn process_allocator_file(file_name: &str) -> Result<AllocatorModel, L
1919
let path = file_name.to_string();
2020

2121
let gh = GithubWrapper::new(owner.clone(), repo.clone(), installation_id.clone());
22-
let content_items = gh.get_file(&path, branch).await.map_err(|e| LDNError::Load(e.to_string()))?;
22+
let content_items = gh.get_files_from_public_repo(&owner, &repo, branch, Some(&path)).await.map_err(|e| LDNError::Load(e.to_string()))?;
2323
let mut model = content_items_to_allocator_model(content_items).map_err(|e| LDNError::Load(e.to_string()))?;
2424

2525
// Get multisig threshold from the blockchain if multisig address is available

0 commit comments

Comments
 (0)