diff options
Diffstat (limited to 'app/workers/scheduler')
-rw-r--r-- | app/workers/scheduler/database_cleanup_scheduler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/scheduler/database_cleanup_scheduler.rb b/app/workers/scheduler/database_cleanup_scheduler.rb index dfc40959d..033556099 100644 --- a/app/workers/scheduler/database_cleanup_scheduler.rb +++ b/app/workers/scheduler/database_cleanup_scheduler.rb @@ -8,7 +8,7 @@ class Scheduler::DatabaseCleanupScheduler def perform Conversation.left_outer_joins(:statuses).where(statuses: { id: nil }).destroy_all Tag.left_outer_joins(:statuses).where(statuses: { id: nil }).destroy_all - StatusStat.left_outer_joins(:statuses).where(statuses: { id: nil }).destroy_all + StatusStat.left_outer_joins(:status).where(statuses: { id: nil }).destroy_all Setting.rewhere(thing_type: 'User').where.not(thing_id: User.select(:id)).destroy_all end end |