diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-03-28 15:07:51 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-03-28 15:07:51 +0000 |
commit | b213b675ec1d6fa633497c5f71c195f00b56be6d (patch) | |
tree | 40b871f2124307dfe2326f1d116d3fd7b4e2f86d /app/workers/namespaces | |
parent | e4dad5d33053f0facde637888363a8954d0d5e46 (diff) | |
download | gitlab-ce-b213b675ec1d6fa633497c5f71c195f00b56be6d.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/workers/namespaces')
-rw-r--r-- | app/workers/namespaces/invite_team_email_worker.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/app/workers/namespaces/invite_team_email_worker.rb b/app/workers/namespaces/invite_team_email_worker.rb deleted file mode 100644 index eabf33a7fba..00000000000 --- a/app/workers/namespaces/invite_team_email_worker.rb +++ /dev/null @@ -1,22 +0,0 @@ -# frozen_string_literal: true - -module Namespaces - class InviteTeamEmailWorker # rubocop:disable Scalability/IdempotentWorker - include ApplicationWorker - - data_consistency :always - - feature_category :experimentation_activation - urgency :low - - def perform(group_id, user_id) - # rubocop: disable CodeReuse/ActiveRecord - user = User.find_by(id: user_id) - group = Group.find_by(id: group_id) - # rubocop: enable CodeReuse/ActiveRecord - return unless user && group - - Namespaces::InviteTeamEmailService.send_email(user, group) - end - end -end |