Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-05-20 15:10:26 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-20 15:10:26 +0300
commita32e60a7ea976c65d0bcb8a9aed90e2b7ed56966 (patch)
treeb346e2fba71c7780c44dbb38a58eb52ba5d9b489 /app/services/web_hook_service.rb
parentb794758ce4c96fa13c4eefdb97f0852641604081 (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.rb4
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