Skip to content

Commit 4f136ed

Browse files
authored
Merge pull request #159 from filecoin-project/fix/merge_application
retrieve correct application
2 parents 93f476b + 1948dc7 commit 4f136ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fplus-database/src/database/applications.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ pub async fn merge_application_by_pr_number(owner: String, repo: String, pr_numb
193193
let pr_application = get_application_by_pr_number(owner.clone(), repo.clone(), pr_number).await?;
194194
let mut exists_merged = true;
195195

196-
let mut merged_application = match get_application_by_pr_number(owner.clone(), repo.clone(), 0).await {
196+
let mut merged_application = match get_application(pr_application.id.clone(), owner.clone(), repo.clone(), Some(0)).await {
197197
Ok(application) => application.into_active_model(),
198198
Err(_) => {
199199
exists_merged = false;

0 commit comments

Comments
 (0)