fix: sql query bis

This commit is contained in:
Ludo Galabru
2023-06-30 16:53:11 -04:00
parent 1a3bc428ea
commit a4798848b1

View File

@@ -516,7 +516,7 @@ pub fn find_latest_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 DESC, tx_index DESC LIMIT 1")
.prepare("SELECT outpoint_to_watch, offset FROM locations WHERE inscription_id = ? ORDER BY block_height DESC, tx_index DESC LIMIT 1")
.unwrap();
let mut rows = stmt.query(args).unwrap();
while let Ok(Some(row)) = rows.next() {