Skip to content

Commit

Permalink
Destroy asynchronously
Browse files Browse the repository at this point in the history
  • Loading branch information
mayorova committed Sep 30, 2024
1 parent 008c65f commit a9d31ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/multitenant/tenants.rake
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ namespace :multitenant do
puts "Processing batch #{index+1} of model #{model.name}..."
batch.each do |object|
puts "- ID: #{object.id}, Tenant ID: #{object.tenant_id}"
object.destroy if destroy
DeletePlainObjectWorker.perform_later(object) if destroy
end
end
orphaned_objects.find_each { |obj| }
Expand Down

0 comments on commit a9d31ad

Please sign in to comment.