Skip to content

Commit

Permalink
param index fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ltitanb committed Dec 5, 2024
1 parent 27ff2aa commit 19710f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/database/src/postgres/postgres_db_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1456,6 +1456,7 @@ impl DatabaseService for PostgresDatabaseService {
if let Some(block_hash) = filters.block_hash() {
query.push_str(&format!(" AND block_submission.block_hash = ${}", param_index));
params.push(Box::new(block_hash));
param_index += 1;
}

if let Some(filtering) = filtering {
Expand All @@ -1464,7 +1465,6 @@ impl DatabaseService for PostgresDatabaseService {
param_index
));
params.push(Box::new(filtering));
param_index += 1;
}

let params_refs: Vec<&(dyn ToSql + Sync)> =
Expand Down

0 comments on commit 19710f1

Please sign in to comment.