Improve code style
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user