From 64caa878ffa9f6dbc38349aa75958d3faffd7483 Mon Sep 17 00:00:00 2001 From: Lech <88630083+Artemka374@users.noreply.github.com> Date: Fri, 9 Aug 2024 13:16:49 +0300 Subject: [PATCH] fix query --- ...d1a2d0f068816ca897f3bba0dd8d611a487659b472ca1f0284d5.json} | 4 ++-- core/lib/dal/src/proof_generation_dal.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename core/lib/dal/.sqlx/{query-782726c01284ded3905c312262afd52908e6748be50524871ff40e3301fecab1.json => query-7460c6101417d1a2d0f068816ca897f3bba0dd8d611a487659b472ca1f0284d5.json} (70%) diff --git a/core/lib/dal/.sqlx/query-782726c01284ded3905c312262afd52908e6748be50524871ff40e3301fecab1.json b/core/lib/dal/.sqlx/query-7460c6101417d1a2d0f068816ca897f3bba0dd8d611a487659b472ca1f0284d5.json similarity index 70% rename from core/lib/dal/.sqlx/query-782726c01284ded3905c312262afd52908e6748be50524871ff40e3301fecab1.json rename to core/lib/dal/.sqlx/query-7460c6101417d1a2d0f068816ca897f3bba0dd8d611a487659b472ca1f0284d5.json index 2be235312c77..bcb4d32a8f17 100644 --- a/core/lib/dal/.sqlx/query-782726c01284ded3905c312262afd52908e6748be50524871ff40e3301fecab1.json +++ b/core/lib/dal/.sqlx/query-7460c6101417d1a2d0f068816ca897f3bba0dd8d611a487659b472ca1f0284d5.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "\n SELECT\n l1_batch_number\n FROM\n proof_generation_details\n WHERE\n proof_blob_url IS NOT NULL\n ORDER BY\n l1_batch_number ASC\n LIMIT\n 1\n ", + "query": "\n SELECT\n l1_batch_number\n FROM\n proof_generation_details\n WHERE\n proof_blob_url IS NOT NULL\n ORDER BY\n l1_batch_number DESC\n LIMIT\n 1\n ", "describe": { "columns": [ { @@ -16,5 +16,5 @@ false ] }, - "hash": "782726c01284ded3905c312262afd52908e6748be50524871ff40e3301fecab1" + "hash": "7460c6101417d1a2d0f068816ca897f3bba0dd8d611a487659b472ca1f0284d5" } diff --git a/core/lib/dal/src/proof_generation_dal.rs b/core/lib/dal/src/proof_generation_dal.rs index 808f4c6f48a0..f83f026073e6 100644 --- a/core/lib/dal/src/proof_generation_dal.rs +++ b/core/lib/dal/src/proof_generation_dal.rs @@ -98,7 +98,7 @@ impl ProofGenerationDal<'_, '_> { WHERE proof_blob_url IS NOT NULL ORDER BY - l1_batch_number ASC + l1_batch_number DESC LIMIT 1 "#,