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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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