System hooks execution moved to System hook service
This commit is contained in:
parent
468c8c5f0a
commit
aa1780d03c
4 changed files with 98 additions and 63 deletions
|
@ -12,12 +12,6 @@
|
|||
#
|
||||
|
||||
class SystemHook < WebHook
|
||||
def self.all_hooks_fire(data)
|
||||
SystemHook.all.each do |sh|
|
||||
sh.async_execute data
|
||||
end
|
||||
end
|
||||
|
||||
def async_execute(data)
|
||||
Sidekiq::Client.enqueue(SystemHookWorker, id, data)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue