2014-12-07 05:29:37 -05:00
|
|
|
class ProjectServiceWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
|
|
|
sidekiq_options queue: :project_web_hook
|
|
|
|
|
|
|
|
def perform(hook_id, data)
|
2014-12-29 10:48:43 -05:00
|
|
|
data = data.with_indifferent_access
|
2014-12-07 05:29:37 -05:00
|
|
|
Service.find(hook_id).execute(data)
|
|
|
|
end
|
|
|
|
end
|