diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-03-23 15:56:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-23 15:56:24 +0100 |
commit | 6f032076ed0f338d914d70aaa3333d4c00940c71 (patch) | |
tree | 274b9b71a73dabcdc7fb89e14b329a38a917fda0 /app/workers | |
parent | 9ff119eecd1079e52a8a41d7b8d61520c4303c2f (diff) | |
parent | 6391a869aee853b01bdd9136b390e2f9b21857cb (diff) |
Merge pull request #1721 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/scheduler/user_cleanup_scheduler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/scheduler/user_cleanup_scheduler.rb b/app/workers/scheduler/user_cleanup_scheduler.rb index 750d2127b..d1f00c47f 100644 --- a/app/workers/scheduler/user_cleanup_scheduler.rb +++ b/app/workers/scheduler/user_cleanup_scheduler.rb @@ -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 |