Rename ResolveRemoteAccountService to ResolveAccountService (#6327)
The service used to be named ResolveRemoteAccountService resolves local accounts as well.
This commit is contained in:
parent
17cecd75ca
commit
613e7c7521
17 changed files with 26 additions and 26 deletions
|
@ -7,7 +7,7 @@ class Import::RelationshipWorker
|
|||
|
||||
def perform(account_id, target_account_uri, relationship)
|
||||
from_account = Account.find(account_id)
|
||||
target_account = ResolveRemoteAccountService.new.call(target_account_uri)
|
||||
target_account = ResolveAccountService.new.call(target_account_uri)
|
||||
|
||||
return if target_account.nil?
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class ResolveRemoteAccountWorker
|
||||
class ResolveAccountWorker
|
||||
include Sidekiq::Worker
|
||||
|
||||
sidekiq_options queue: 'pull', unique: :until_executed
|
||||
|
||||
def perform(uri)
|
||||
ResolveRemoteAccountService.new.call(uri)
|
||||
ResolveAccountService.new.call(uri)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue