Sha256: 0b1d9c01400b974d55e721c805b64ff05248dbe31113e915464d0c489e35220a

Contents?: true

Size: 486 Bytes

Versions: 4

Compression:

Stored size: 486 Bytes

Contents

# frozen_string_literal: true

require "decidim/direct_verifications/instrumenter"

module Decidim
  module DirectVerifications
    class RegisterUsersJob < BaseImportJob
      def process_users
        Rails.logger.info "RegisterUsersJob: Registering #{emails.count} emails"
        emails.each do |email, data|
          RegisterUser.new(email, data, organization, current_user, instrumenter).call
        end
      end

      def type
        :registered
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-direct_verifications-1.2.1 app/jobs/decidim/direct_verifications/register_users_job.rb
decidim-direct_verifications-1.2 app/jobs/decidim/direct_verifications/register_users_job.rb
decidim-direct_verifications-1.0.2 app/jobs/decidim/direct_verifications/register_users_job.rb
decidim-direct_verifications-1.1 app/jobs/decidim/direct_verifications/register_users_job.rb