This repository has been archived on 2023-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
|
# frozen_string_literal: true
|
|
|
|
class ClearAsymmetricPrivateKeyJob < ApplicationJob
|
|
queue_as :default
|
|
|
|
def perform(asymmetric_key_id)
|
|
AsymmetricKey
|
|
.find(asymmetric_key_id)
|
|
.update! private_key_pem_iv: nil, private_key_pem_ciphertext: nil
|
|
end
|
|
end
|