1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/jobs/clear_asymmetric_private_key_job.rb

11 lines
268 B
Ruby

# 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