docbrown/app/workers/notifications/new_follower_worker.rb
rhymes 085c60992b
Rubocop: Enable and fix Style/OptionalBooleanParameter cop (#9711)
* Enable and fix Style/OptionalBooleanParameter cop

* Keep regular parameters for workers

* Keep regular parameters for workers

* Fix spec

* Trigger Travis correctly
2020-08-10 19:35:55 +02:00

11 lines
320 B
Ruby

module Notifications
class NewFollowerWorker
include Sidekiq::Worker
sidekiq_options queue: :medium_priority, retry: 10
def perform(follow_data, is_read = false) # rubocop:disable Style/OptionalBooleanParameter
Notifications::NewFollower::Send.call(follow_data, is_read: is_read)
end
end
end