diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-11 18:13:01 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-11 18:13:01 +0300 |
commit | 046d6f52772ada2e08af58627f03bc18e0c932b5 (patch) | |
tree | 798d9218ecbc945593bc7d592199e78c613b9b4d /lib/api/helpers.rb | |
parent | cb787abec6e64a220b2807469023f4de210dac10 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index c189fde503a..ff3590d6c13 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -75,8 +75,9 @@ module API save_current_user_in_env(@current_user) if @current_user if @current_user - ::Gitlab::Database::LoadBalancing::RackMiddleware - .stick_or_unstick(env, :user, @current_user.id) + ::ApplicationRecord + .sticking + .stick_or_unstick_request(env, :user, @current_user.id) end @current_user |