We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe26063 commit b50bbc1Copy full SHA for b50bbc1
components/chainhook-event-observer/src/hord/db/mod.rs
@@ -423,7 +423,7 @@ pub fn find_inscription_with_ordinal_number(
423
) -> Option<String> {
424
let args: &[&dyn ToSql] = &[&ordinal_number.to_sql().unwrap()];
425
let mut stmt = inscriptions_db_conn
426
- .prepare("SELECT inscription_id FROM inscriptions WHERE ordinal_number = ?")
+ .prepare("SELECT inscription_id FROM inscriptions WHERE ordinal_number = ? AND inscription_number > 0")
427
.unwrap();
428
let mut rows = stmt.query(args).unwrap();
429
while let Ok(Some(row)) = rows.next() {
0 commit comments