2014-09-02 18:07:02 +05:30
|
|
|
class SystemHookWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
|
|
|
sidekiq_options queue: :system_hook
|
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
def perform(hook_id, data, hook_name)
|
|
|
|
SystemHook.find(hook_id).execute(data, hook_name)
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|
|
|
|
end
|