* Enable and fix Style/OptionalBooleanParameter cop * Keep regular parameters for workers * Keep regular parameters for workers * Fix spec * Trigger Travis correctly
11 lines
320 B
Ruby
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
|