summaryrefslogtreecommitdiff
path: root/app/models/hooks/system_hook.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/hooks/system_hook.rb')
-rw-r--r--app/models/hooks/system_hook.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/hooks/system_hook.rb b/app/models/hooks/system_hook.rb
index c147d8762a9..15dddcc2447 100644
--- a/app/models/hooks/system_hook.rb
+++ b/app/models/hooks/system_hook.rb
@@ -19,4 +19,7 @@
#
class SystemHook < WebHook
+ def async_execute(data, hook_name)
+ Sidekiq::Client.enqueue(SystemHookWorker, id, data, hook_name)
+ end
end