Skip to content

Commit 28db536

Browse files
authored
Add missing comment (#295)
1 parent 8bb9119 commit 28db536

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

fplus-lib/src/core/mod.rs

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,17 +1587,23 @@ impl LDNApplication {
15871587
)
15881588
.await?;
15891589

1590-
Self::issue_datacap_allocation_requested(
1590+
let signature_step = if threshold_to_use > 1 {
1591+
"Signed".to_string()
1592+
} else {
1593+
"Approved".to_string()
1594+
};
1595+
1596+
Self::issue_datacap_request_signature(
15911597
app_file_with_new_allocation_request.clone(),
1592-
app_file_with_new_allocation_request.get_active_allocation(),
1593-
owner.to_string(),
1594-
repo.to_string(),
1598+
signature_step,
1599+
owner.into(),
1600+
repo.into(),
15951601
)
15961602
.await?;
15971603

15981604
if threshold_to_use > 1 {
15991605
Self::update_issue_labels(
1600-
app_file_with_new_allocation_request.issue_number.clone(),
1606+
app_file.issue_number.clone(),
16011607
&[AppState::DecreasingDataCap.as_str()],
16021608
owner.to_string(),
16031609
repo.to_string(),
@@ -1665,6 +1671,13 @@ impl LDNApplication {
16651671
commit_message =
16661672
LDNPullRequest::application_move_to_confirmed_commit(&verifier.signing_address);
16671673
signature_step = "Approved".to_string();
1674+
Self::update_issue_labels(
1675+
app_file.issue_number.clone(),
1676+
&[AppState::Granted.as_str()],
1677+
owner.into(),
1678+
repo.into(),
1679+
)
1680+
.await?;
16681681
}
16691682
self.update_and_commit_application_state(
16701683
app_file.clone(),

0 commit comments

Comments
 (0)