Fix clean_discarded_statuses (#17822)

lolsob-rspec
Jeong Arm 2022-03-19 17:24:08 +09:00 committed by GitHub
parent bf4cad4a67
commit 851cb96e75
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class Scheduler::UserCleanupScheduler
end end
def clean_discarded_statuses! 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| RemovalWorker.push_bulk(statuses) do |status|
[status.id, { 'immediate' => true }] [status.id, { 'immediate' => true }]
end end