diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-24 03:12:33 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-24 03:12:33 +0300 |
commit | 1c27dcaf69cd0181755172d94c87c823e4d5f069 (patch) | |
tree | 4cf0f9084d3c3878bd31aed8a3f3c2bec0b8da0f /app/models/member.rb | |
parent | abd24a801e8dbe0942558dd2b2cad90e7e01938e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/member.rb')
-rw-r--r-- | app/models/member.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/models/member.rb b/app/models/member.rb index 11f67a77ee2..45c2edf1f9a 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -417,11 +417,9 @@ class Member < ApplicationRecord def after_accept_invite post_create_hook - if experiment(:invite_members_for_task).enabled? - run_after_commit_or_now do - if member_task - TasksToBeDone::CreateWorker.perform_async(member_task.id, created_by_id, [user_id.to_i]) - end + run_after_commit_or_now do + if member_task + TasksToBeDone::CreateWorker.perform_async(member_task.id, created_by_id, [user_id.to_i]) end end end |