Commit fb89cccf authored by Alex Kalderimis's avatar Alex Kalderimis

Add executable scope for system hooks

parent 98b1d0be
...@@ -10,7 +10,7 @@ class SystemHooksService ...@@ -10,7 +10,7 @@ class SystemHooksService
end end
def execute_hooks(data, hooks_scope = :all) def execute_hooks(data, hooks_scope = :all)
SystemHook.hooks_for(hooks_scope).find_each do |hook| SystemHook.executable.hooks_for(hooks_scope).find_each do |hook|
hook.async_execute(data, 'system_hooks') hook.async_execute(data, 'system_hooks')
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment