From f41b08adbd37a0431dcb8401c791475ca7db89ce Mon Sep 17 00:00:00 2001 From: plaidfinch Date: Wed, 17 Jul 2024 16:49:22 +0000 Subject: [PATCH] Add missing bind parameter --- crates/bin/pindexer/src/governance.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/bin/pindexer/src/governance.rs b/crates/bin/pindexer/src/governance.rs index 072912206b..695331b3ae 100644 --- a/crates/bin/pindexer/src/governance.rs +++ b/crates/bin/pindexer/src/governance.rs @@ -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); @@ -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);