2018-06-27 03:23:28 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2014-12-07 05:29:37 -05:00
|
|
|
class ProjectServiceWorker
|
2017-11-28 11:08:30 -05:00
|
|
|
include ApplicationWorker
|
2014-12-07 05:29:37 -05:00
|
|
|
|
2017-07-17 11:38:02 -04:00
|
|
|
sidekiq_options dead: false
|
|
|
|
|
2014-12-07 05:29:37 -05:00
|
|
|
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
|