Cron jobs must process all the tenants
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user