Skip to content

Commit

Permalink
Add missing bind parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
plaidfinch committed Jul 17, 2024
1 parent 1344ad2 commit caf9ddb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/bin/pindexer/src/governance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ async fn handle_proposal_failed(dbtx: &mut PgTransaction<'_>, proposal: Proposal
WHERE proposal_id = $1 AND withdrawn = TRUE
LIMIT 1",
)
.bind(proposal.id as i64)
.fetch_optional(dbtx.as_mut())
.await?;
let withdrawn = proposal_state::Withdrawn::from(reason);
Expand Down Expand Up @@ -482,6 +483,7 @@ async fn handle_proposal_slashed(dbtx: &mut PgTransaction<'_>, proposal: Proposa
WHERE proposal_id = $1 AND withdrawn = TRUE
LIMIT 1",
)
.bind(proposal.id as i64)
.fetch_optional(dbtx.as_mut())
.await?;
let withdrawn = proposal_state::Withdrawn::from(reason);
Expand Down

0 comments on commit caf9ddb

Please sign in to comment.