Skip to content

Commit

Permalink
return oldest unprocessed settlement
Browse files Browse the repository at this point in the history
  • Loading branch information
sunce86 committed Jan 22, 2024
1 parent f10361d commit f000781
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/database/src/settlements.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ pub async fn get_settlement_without_auction(
SELECT block_number, log_index, tx_hash
FROM settlements
WHERE auction_kind = 'unprocessed'
ORDER BY block_number ASC
LIMIT 1
"#;
sqlx::query_as(QUERY).fetch_optional(ex).await
Expand Down

0 comments on commit f000781

Please sign in to comment.