Sha256: e18c8ef8f81c7a50825716fa74462b8260960f22c19f9f27b44809663e42014d

Contents?: true

Size: 607 Bytes

Versions: 2

Compression:

Stored size: 607 Bytes

Contents

# frozen_string_literal: true

require "decidim/direct_verifications/instrumenter"

module Decidim
  module DirectVerifications
    class AuthorizeUsersJob < BaseImportJob
      class NullSession; end

      def process_users
        emails.each do |email, data|
          AuthorizeUser.new(
            email,
            data,
            session,
            organization,
            instrumenter,
            authorization_handler
          ).call
        end
      end

      def type
        :authorized
      end

      private

      def session
        NullSession.new
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
decidim-direct_verifications-1.0.1 app/jobs/decidim/direct_verifications/authorize_users_job.rb
decidim-direct_verifications-1.0 app/jobs/decidim/direct_verifications/authorize_users_job.rb