From b0bca0fe05dd9204abdea0984ad101824bcf9082 Mon Sep 17 00:00:00 2001 From: LaRita Robinson Date: Tue, 10 Sep 2024 16:53:40 -0400 Subject: [PATCH] Fix tenant maintenance job Cannot call find on Account. Use find_each instead. --- app/jobs/tenant_maintenance_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/tenant_maintenance_job.rb b/app/jobs/tenant_maintenance_job.rb index 3937cdb1e..d8269d371 100644 --- a/app/jobs/tenant_maintenance_job.rb +++ b/app/jobs/tenant_maintenance_job.rb @@ -6,7 +6,7 @@ class TenantMaintenanceJob < ApplicationJob non_tenant_job def perform - Account.each(&:find_or_schedule_jobs) + Account.find_each(&:find_or_schedule_jobs) TenantMaintenanceJob.set(wait_until: Date.tomorrow.midnight).perform_later end end