Skip to content

Commit b63e672

Browse files
committed
little fix
1 parent db4fc67 commit b63e672

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub async fn process_allocator_file(file_name: &str) -> Result<AllocatorModel, L
1818
let branch = "main";
1919
let path = file_name.to_string();
2020

21-
let gh = GithubWrapper::new(owner.clone(), repo.clone(), installation_id);
21+
let gh = GithubWrapper::new(owner.clone(), repo.clone(), installation_id.clone());
2222
let content_items = gh.get_file(&path, branch).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

@@ -63,7 +63,7 @@ fn content_items_to_allocator_model(file: ContentItems) -> Result<AllocatorModel
6363
}
6464

6565
pub async fn is_allocator_repo_created(owner: &str, repo: &str) -> Result<bool, LDNError> {
66-
let repo_flag_file = "invalisd.md";
66+
let repo_flag_file = "invalid.md";
6767
let applications_directory = "applications";
6868
let gh = github_async_new(owner.to_string(), repo.to_string()).await;
6969
let all_files_result = gh.get_files(applications_directory).await.map_err(|e| {

0 commit comments

Comments
 (0)