summaryrefslogtreecommitdiff
path: root/app/workers/group_import_worker.rb
blob: f283eab581494927fa34f7025a32662c6e417483 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class GroupImportWorker
  include ApplicationWorker
  include ExceptionBacktrace

  feature_category :importers

  def perform(user_id, group_id)
    current_user = User.find(user_id)
    group = Group.find(group_id)

    ::Groups::ImportExport::ImportService.new(group: group, user: current_user).execute
  end
end