diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-20 15:10:26 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-20 15:10:26 +0300 |
commit | a32e60a7ea976c65d0bcb8a9aed90e2b7ed56966 (patch) | |
tree | b346e2fba71c7780c44dbb38a58eb52ba5d9b489 /app/services/web_hook_service.rb | |
parent | b794758ce4c96fa13c4eefdb97f0852641604081 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/web_hook_service.rb')
-rw-r--r-- | app/services/web_hook_service.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/services/web_hook_service.rb b/app/services/web_hook_service.rb index c24ab10ad86..82a7e8501cd 100644 --- a/app/services/web_hook_service.rb +++ b/app/services/web_hook_service.rb @@ -93,7 +93,9 @@ class WebHookService if rate_limited?(hook) log_rate_limit(hook) else - WebHookWorker.perform_async(hook.id, data, hook_name) + Gitlab::ApplicationContext.with_context(hook.application_context) do + WebHookWorker.perform_async(hook.id, data, hook_name) + end end end |