Class: Preneeds::DeleteOldUploads

Inherits:
DeleteAttachmentJob show all
Defined in:
app/sidekiq/preneeds/delete_old_uploads.rb

Constant Summary collapse

ATTACHMENT_CLASSES =
%w[Preneeds::PreneedAttachment].freeze
FORM_ID =
'40-10007'

Constants inherited from DeleteAttachmentJob

DeleteAttachmentJob::EXPIRATION_TIME

Instance Method Summary collapse

Methods inherited from DeleteAttachmentJob

#perform, #uuids_to_keep

Instance Method Details

#get_uuids(form_data) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'app/sidekiq/preneeds/delete_old_uploads.rb', line 8

def get_uuids(form_data)
  uuids = []

  Array.wrap(form_data['preneedAttachments']).each do |attachment|
    uuids << attachment['confirmationCode']
  end

  uuids
end