Skip to content

Commit

Permalink
fix: id based sqlite query
Browse files Browse the repository at this point in the history
Queries using the `id` field were failing after the refactor of
removing hexranges.
  • Loading branch information
dcadenas authored and scsibug committed Aug 14, 2024
1 parent 5ad318e commit af6d101
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/repo/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,8 @@ fn query_from_filter(f: &ReqFilter) -> (String, Vec<Box<dyn ToSql>>, Option<Stri
let mut id_searches: Vec<String> = vec![];
for id in idvec {
id_searches.push("event_hash=?".to_owned());
params.push(Box::new(id.clone()));
let id_bin = hex::decode(id).ok();
params.push(Box::new(id_bin));
}
if idvec.is_empty() {
// if the ids list was empty, we should never return
Expand Down

0 comments on commit af6d101

Please sign in to comment.