diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-08-21 12:25:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-21 12:25:50 +0200 |
commit | d98de8ada743886c3cd48b2ad942d46b805af7a9 (patch) | |
tree | 9c7551f7b60a7884929e259e85d91f14c6602395 /app/services/after_block_domain_from_account_service.rb | |
parent | 83746b63646088396232a348f4024b101f39c78a (diff) |
Get rid of all batch order warnings (#8334)
Diffstat (limited to 'app/services/after_block_domain_from_account_service.rb')
-rw-r--r-- | app/services/after_block_domain_from_account_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/after_block_domain_from_account_service.rb b/app/services/after_block_domain_from_account_service.rb index 0f1a8505d..56cc819fb 100644 --- a/app/services/after_block_domain_from_account_service.rb +++ b/app/services/after_block_domain_from_account_service.rb @@ -15,13 +15,13 @@ class AfterBlockDomainFromAccountService < BaseService private def reject_existing_followers! - @account.passive_relationships.where(account: Account.where(domain: @domain)).includes(:account).find_each do |follow| + @account.passive_relationships.where(account: Account.where(domain: @domain)).includes(:account).reorder(nil).find_each do |follow| reject_follow!(follow) end end def reject_pending_follow_requests! - FollowRequest.where(target_account: @account).where(account: Account.where(domain: @domain)).includes(:account).find_each do |follow_request| + FollowRequest.where(target_account: @account).where(account: Account.where(domain: @domain)).includes(:account).reorder(nil).find_each do |follow_request| reject_follow!(follow_request) end end |