Cron jobs must process all the tenants

This commit is contained in:
Jorge Manrubia
2025-09-02 11:35:53 +02:00
parent fc0eec8d07
commit b8630bdb24
+4 -2
View File
@@ -1,7 +1,9 @@
class User::Highlights::GenerateAllJob < ApplicationJob
queue_as :backend
def perform(user)
User.generate_all_weekly_highlights
def perform
ApplicationRecord.with_each_tenant do |tenant|
User.generate_all_weekly_highlights
end
end
end