Sha256: 9f94c063aa776bac247d2128db0394e87d17efe46261bae6a3f9973a099b38ea

Contents?: true

Size: 505 Bytes

Versions: 15

Compression:

Stored size: 505 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Accountability
    module Admin
      class ImportResultsCSVJob < ApplicationJob
        queue_as :default

        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

15 entries across 15 versions & 1 rubygems

Version Path
decidim-accountability-0.24.3 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.23.6 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.24.2 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.23.5 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.24.1 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.24.0 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.24.0.rc2 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.23.4 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.24.0.rc1 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.23.3 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.23.2 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.23.1 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.23.1.rc1 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.23.0 app/jobs/decidim/accountability/admin/import_results_csv_job.rb
decidim-accountability-0.22.0 app/jobs/decidim/accountability/admin/import_results_csv_job.rb