diff options
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 |