From 0f68a025dd05c70f9b3fce1d514353e7b9ed0a99 Mon Sep 17 00:00:00 2001 From: Eric Pugh Date: Tue, 10 Dec 2024 12:38:30 -0500 Subject: [PATCH] fix the sorting of the try --- app/jobs/enqueue_nightly_query_runner_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/enqueue_nightly_query_runner_job.rb b/app/jobs/enqueue_nightly_query_runner_job.rb index b99afdfd3..bd110270e 100644 --- a/app/jobs/enqueue_nightly_query_runner_job.rb +++ b/app/jobs/enqueue_nightly_query_runner_job.rb @@ -5,7 +5,7 @@ class EnqueueNightlyQueryRunnerJob < ApplicationJob def perform(*args) Case.all.nightly_run.each do |kase| - try = kase.tries.last + try = kase.tries.first # new to old ;-) QueryRunnerJob.perform_later kase, try end end