diff --git a/sqlx-data.json b/sqlx-data.json index c127cb4..2b61211 100644 --- a/sqlx-data.json +++ b/sqlx-data.json @@ -1790,8 +1790,8 @@ ] } }, - "fd805ef66d1d065929e69303b968fa6fdf14111b701c4c0c31f83a189c4490d7": { - "query": "\n SELECT * FROM image_backlog\n ORDER BY id ASC\n LIMIT $1\n ", + "e3fcb30bd0439e028e9b9433da0d2c577ca1615fa822d14fb5618a0bcd68e0db": { + "query": "\n SELECT * FROM image_backlog\n ORDER BY (page, id) ASC\n LIMIT $1\n ", "describe": { "columns": [ { diff --git a/src/db.rs b/src/db.rs index 850dd58..0c9f2f6 100644 --- a/src/db.rs +++ b/src/db.rs @@ -72,7 +72,7 @@ impl DBClient { let jobs = sqlx::query_as!(ImageJob, " SELECT * FROM image_backlog - ORDER BY id ASC + ORDER BY (page, id) ASC LIMIT $1 ", limit