Skip to content

Commit

Permalink
Fix tenant maintenance job
Browse files Browse the repository at this point in the history
Cannot call find on Account. Use find_each instead.
  • Loading branch information
laritakr committed Sep 10, 2024
1 parent ca5f702 commit b0bca0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/tenant_maintenance_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b0bca0f

Please sign in to comment.