diff --git a/app/sidekiq/central_mail/submit_saved_claim_job.rb b/app/sidekiq/central_mail/submit_saved_claim_job.rb index 7f90cc7b65b..0e7a0a5a843 100644 --- a/app/sidekiq/central_mail/submit_saved_claim_job.rb +++ b/app/sidekiq/central_mail/submit_saved_claim_job.rb @@ -59,7 +59,7 @@ def perform(saved_claim_id) def send_claim_to_central_mail(saved_claim_id) @claim = SavedClaim.find(saved_claim_id) - @pdf_path = @claim.form_id == '21P-530V2' ? process_record(@claim, @claim.created_at, @claim.form_id) : process_record(@claim) + @pdf_path = @claim.form_id == '21P-530V2' ? process_record(@claim, @claim.created_at, @claim.form_id) : process_record(@claim) # rubocop:disable Layout/LineLength @attachment_paths = @claim.persistent_attachments.map do |record| process_record(record) @@ -97,6 +97,7 @@ def to_faraday_upload(file_path) ) end + # rubocop:disable Metrics/MethodLength def process_record(record, timestamp = nil, form_id = nil) pdf_path = record.to_pdf stamped_path1 = CentralMail::DatestampPdf.new(pdf_path).run(text: 'VA.GOV', x: 5, y: 5) @@ -122,6 +123,7 @@ def process_record(record, timestamp = nil, form_id = nil) stamped_path2 end end + # rubocop:enable Metrics/MethodLength def get_hash_and_pages(file_path) {