Sha256: 194df028228984f5e68f5fb4017a1f7ed4ea58a74ebbfff2c107d93057d8c4c6

Contents?: true

Size: 425 Bytes

Versions: 4

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module DirectVerifications
    class RevokeUsersJob < BaseImportJob
      def process_users
        Rails.logger.info "RevokeUsersJob: Revoking #{emails.count} emails"
        emails.each do |email, _name|
          RevokeUser.new(email, organization, instrumenter, authorization_handler).call
        end
      end

      def type
        :revoked
      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/revoke_users_job.rb
decidim-direct_verifications-1.2 app/jobs/decidim/direct_verifications/revoke_users_job.rb
decidim-direct_verifications-1.0.2 app/jobs/decidim/direct_verifications/revoke_users_job.rb
decidim-direct_verifications-1.1 app/jobs/decidim/direct_verifications/revoke_users_job.rb