chore: Change the RemoveMessageNotifications job implementation. (#8521)

This commit is contained in:
Muhsin Keloth
2023-12-11 08:27:30 +05:30
committed by GitHub
parent 38240a68aa
commit 80ff5e2d0a

View File

@@ -3,6 +3,6 @@ class Migration::RemoveMessageNotifications < ApplicationJob
queue_as :scheduled_jobs
def perform
Notification.where(primary_actor_type: 'Message').in_batches(of: 100).each_record(&:destroy)
Notification.where(primary_actor_type: 'Message').in_batches(of: 100).delete_all
end
end