Skip to content

Commit a479884

Browse files
author
Ludo Galabru
committed
fix: sql query bis
1 parent 1a3bc42 commit a479884

File tree

1 file changed

+1
-1
lines changed
  • components/chainhook-sdk/src/hord/db

1 file changed

+1
-1
lines changed

components/chainhook-sdk/src/hord/db/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ pub fn find_latest_inscription_transfer_data(
516516
) -> Result<Option<(TransactionIdentifier, usize, u64)>, String> {
517517
let args: &[&dyn ToSql] = &[&inscription_id.to_sql().unwrap()];
518518
let mut stmt = inscriptions_db_conn
519-
.prepare("SELECT offset, outpoint_to_watch FROM locations WHERE inscription_id = ? ORDER BY block_height DESC, tx_index DESC LIMIT 1")
519+
.prepare("SELECT outpoint_to_watch, offset FROM locations WHERE inscription_id = ? ORDER BY block_height DESC, tx_index DESC LIMIT 1")
520520
.unwrap();
521521
let mut rows = stmt.query(args).unwrap();
522522
while let Ok(Some(row)) = rows.next() {

0 commit comments

Comments
 (0)