Browse Source

Fix bug mentioned in #1565 (#1954)

closed-social-v3
Eugen 7 years ago
committed by GitHub
parent
commit
8f2ed79a0b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/tasks/mastodon.rake

+ 1
- 1
lib/tasks/mastodon.rake View File

@ -100,7 +100,7 @@ namespace :mastodon do
# only have a user record and an avatar record, with no files uploaded # only have a user record and an avatar record, with no files uploaded
User.where('confirmed_at is NULL AND confirmation_sent_at <= ?', 2.days.ago).find_in_batches do |batch| User.where('confirmed_at is NULL AND confirmation_sent_at <= ?', 2.days.ago).find_in_batches do |batch|
Account.where(id: batch.map(&:account_id)).delete_all Account.where(id: batch.map(&:account_id)).delete_all
batch.delete_all
User.where(id: batch.map(&:id)).delete_all
end end
end end
end end

Loading…
Cancel
Save