Sha256: e1707b5b7e4df5a14fd7066db99aab0301bf8c8768b3b70e3112a82b4b6dfee8

Contents?: true

Size: 505 Bytes

Versions: 44

Compression:

Stored size: 505 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Accountability
    module Admin
      class ImportResultsCsvJob < ApplicationJob
        queue_as :exports

        def perform(current_user, current_component, csv_file)
          importer = Decidim::Accountability::ResultsCsvImporter.new(current_component, csv_file, current_user)

          errors = importer.import!

          Decidim::Accountability::ImportMailer.import(current_user, errors).deliver_now
        end
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
decidim-accountability-0.29.1 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.28.4 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.27.9 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.29.0 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.28.3 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.27.8 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.29.0.rc4 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.29.0.rc3 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.29.0.rc2 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.29.0.rc1 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.28.2 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.27.7 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.28.1 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.27.6 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.26.10 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.26.9 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.28.0 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.27.5 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.28.0.rc5 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.28.0.rc4 app/jobs/decidim/accountability/admin/import_results_csv_job.rb