Remove unneeded reorder(nil) conditions (#32200)

This commit is contained in:
Matt Jankowski 2024-10-02 08:26:16 -04:00 committed by GitHub
parent 4aa26eba53
commit 1f65a95421
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 8 additions and 8 deletions

View file

@ -16,12 +16,12 @@ class PurgeDomainService < BaseService
end
def purge_accounts!
Account.remote.where(domain: @domain).reorder(nil).find_each do |account|
Account.remote.where(domain: @domain).find_each do |account|
DeleteAccountService.new.call(account, reserve_username: false, skip_side_effects: true)
end
end
def purge_emojis!
CustomEmoji.remote.where(domain: @domain).reorder(nil).find_each(&:destroy)
CustomEmoji.remote.where(domain: @domain).find_each(&:destroy)
end
end