diff --git a/app/controllers/api/v1/omiga_inscriptions_controller.rb b/app/controllers/api/v1/omiga_inscriptions_controller.rb index 44f1e95ec..e9785bcf0 100644 --- a/app/controllers/api/v1/omiga_inscriptions_controller.rb +++ b/app/controllers/api/v1/omiga_inscriptions_controller.rb @@ -38,7 +38,7 @@ def show else Udt.joins(:omiga_inscription_info).where( "udts.type_hash = ? or omiga_inscription_infos.type_hash = ?", params[:id], params[:id] - ).order("id DESC").first + ).order("block_timestamp DESC").first end if udt.nil? diff --git a/app/jobs/csv_exportable/export_omiga_inscription_transactions_job.rb b/app/jobs/csv_exportable/export_omiga_inscription_transactions_job.rb index 343b1f003..3090a962b 100644 --- a/app/jobs/csv_exportable/export_omiga_inscription_transactions_job.rb +++ b/app/jobs/csv_exportable/export_omiga_inscription_transactions_job.rb @@ -9,7 +9,7 @@ def perform(args) else Udt.joins(:omiga_inscription_info).where( "udts.type_hash = ? or omiga_inscription_infos.type_hash = ?", args[:id], args[:id] - ).order("id DESC").first + ).order("block_timestamp DESC").first end ckb_transactions = udt.ckb_transactions