diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-16 23:58:46 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:18 -0500 |
commit | cf1ef2c265f6d965a36298faffdcf1a783ef7683 (patch) | |
tree | 4af70caa5d5bfaa613e4b3a158b65962dd4bf759 /app/workers/scheduler | |
parent | 0535136c2b8d4c9cf57717580d3918c2772960a1 (diff) |
[Bug] Fix spelling of StatusStat association
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 |