Skip to content

Commit

Permalink
fix: sql query
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalabru committed Jun 30, 2023
1 parent 1ba27d7 commit 1a3bc42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/chainhook-sdk/src/hord/db/mod.rs
Expand Up @@ -493,7 +493,7 @@ pub fn find_initial_inscription_transfer_data(
) -> Result<Option<(TransactionIdentifier, usize, u64)>, String> {
let args: &[&dyn ToSql] = &[&inscription_id.to_sql().unwrap()];
let mut stmt = inscriptions_db_conn
.prepare("SELECT offset, outpoint_to_watch FROM locations WHERE inscription_id = ? ORDER BY block_height ASC, tx_index ASC LIMIT 1")
.prepare("SELECT outpoint_to_watch, offset FROM locations WHERE inscription_id = ? ORDER BY block_height ASC, tx_index ASC LIMIT 1")
.unwrap();
let mut rows = stmt.query(args).unwrap();
while let Ok(Some(row)) = rows.next() {
Expand Down

0 comments on commit 1a3bc42

Please sign in to comment.