Improve code style

This commit is contained in:
Eugen Rochko
2016-09-29 21:28:21 +02:00
parent e4aebad35a
commit 927333f4f8
41 changed files with 126 additions and 122 deletions

View File

@ -2,6 +2,6 @@ class DistributionWorker
include Sidekiq::Worker
def perform(status_id)
FanOutOnWriteService.new.(Status.find(status_id))
FanOutOnWriteService.new.call(Status.find(status_id))
end
end

View File

@ -2,6 +2,6 @@ class NotificationWorker
include Sidekiq::Worker
def perform(stream_entry_id, target_account_id)
SendInteractionService.new.(StreamEntry.find(stream_entry_id), Account.find(target_account_id))
SendInteractionService.new.call(StreamEntry.find(stream_entry_id), Account.find(target_account_id))
end
end

View File

@ -3,7 +3,7 @@ class ThreadResolveWorker
def perform(child_status_id, parent_url)
child_status = Status.find(child_status_id)
parent_status = FetchRemoteStatusService.new.(parent_url)
parent_status = FetchRemoteStatusService.new.call(parent_url)
unless parent_status.nil?
child_status.thread = parent_status