db2edff937
Write to log if web hook cant be executed. This prevents 500 error when test web hook with invalid URL and prevent exceptions and retries in sidekiq Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
6 lines
159 B
Ruby
6 lines
159 B
Ruby
class TestHookService
|
|
def execute(hook, current_user)
|
|
data = GitPushService.new.sample_data(hook.project, current_user)
|
|
hook.execute(data)
|
|
end
|
|
end
|