Skip to content

Commit

Permalink
Fix ordering of assets (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
linuskendall authored Sep 4, 2023
1 parent fadfad2 commit 1562a54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nft_ingester/src/tasks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ impl TaskManager {
.less_or_equal(Expr::col(tasks::Column::MaxAttempts)),
),
)
.order_by_desc(tasks::Column::CreatedAt)
.order_by(tasks::Column::Attempts, Order::Asc)
.order_by(tasks::Column::CreatedAt, Order::Desc)
.limit(batch_size)
.all(conn)
.await
Expand Down

0 comments on commit 1562a54

Please sign in to comment.