Skip to content
Snippets Groups Projects
Unverified Commit 3349cbeb authored by Jeong Arm's avatar Jeong Arm Committed by GitHub
Browse files

Fix clean_discarded_statuses (#17822)

parent bf846543
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ class Scheduler::UserCleanupScheduler
end
def clean_discarded_statuses!
Status.discarded.where('deleted_at <= ?', 30.days.ago).find_in_batches do |statuses|
Status.unscoped.discarded.where('deleted_at <= ?', 30.days.ago).find_in_batches do |statuses|
RemovalWorker.push_bulk(statuses) do |status|
[status.id, { 'immediate' => true }]
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment