summaryrefslogtreecommitdiff
path: root/app/workers/gitlab/github_import/attachments/import_note_worker.rb
blob: 2f5bc50ee0b52277b82d52d7870b895fb00aeafe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

module Gitlab
  module GithubImport
    module Attachments
      class ImportNoteWorker # rubocop:disable Scalability/IdempotentWorker
        include ObjectImporter

        def representation_class
          Representation::NoteText
        end

        def importer_class
          Importer::NoteAttachmentsImporter
        end

        def object_type
          :note_attachment
        end
      end
    end
  end
end