mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 22:18:06 +01:00
Fix clean_discarded_statuses (#17822)
This commit is contained in:
parent
bf84654345
commit
3349cbeb3e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue