From f4cb83d81c0ba0e56228dc5f8c9757d90f6e200b Mon Sep 17 00:00:00 2001 From: Samuel Cormier Date: Fri, 22 Nov 2024 13:33:07 -0800 Subject: [PATCH] fixed linting issues --- app/models/evidence_submission.rb | 1 - app/sidekiq/lighthouse/document_upload.rb | 10 +++++----- lib/lighthouse/benefits_documents/constants.rb | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/models/evidence_submission.rb b/app/models/evidence_submission.rb index ac531087258..3bc3bb19a7d 100644 --- a/app/models/evidence_submission.rb +++ b/app/models/evidence_submission.rb @@ -4,5 +4,4 @@ class EvidenceSubmission < ApplicationRecord belongs_to :user_account has_kms_key has_encrypted :template_metadata, key: :kms_key, **lockbox_options - # attr_accessor :upload_status, :delete_date end diff --git a/app/sidekiq/lighthouse/document_upload.rb b/app/sidekiq/lighthouse/document_upload.rb index 31b291dff34..7cbacb5eb73 100644 --- a/app/sidekiq/lighthouse/document_upload.rb +++ b/app/sidekiq/lighthouse/document_upload.rb @@ -83,7 +83,7 @@ def self.notify_client def perform(user_icn, document_hash, user_account_uuid, claim_id, tracked_item_id) @user_icn = user_icn @document_hash = document_hash - + evidence_submission = record_evidence_submission(claim_id, jid, tracked_item_id, user_account_uuid) initialize_upload_document @@ -145,10 +145,10 @@ def record_evidence_submission(claim_id, job_id, tracked_item_id, user_account_u upload_status = BenefitsDocuments::Constants::UPLOAD_STATUS[:PENDING] evidence_submission = EvidenceSubmission.find_or_create_by(claim_id:, - tracked_item_id:, - job_id:, - job_class:, - upload_status:) + tracked_item_id:, + job_id:, + job_class:, + upload_status:) evidence_submission.user_account = user_account evidence_submission.save! evidence_submission diff --git a/lib/lighthouse/benefits_documents/constants.rb b/lib/lighthouse/benefits_documents/constants.rb index 51ccc1562c1..9b5f9e18b90 100644 --- a/lib/lighthouse/benefits_documents/constants.rb +++ b/lib/lighthouse/benefits_documents/constants.rb @@ -6,6 +6,6 @@ module Constants PENDING: 'IN_PROGRESS', FAILED: 'FAILED', SUCCESS: 'SUCCESS' - } + }.freeze end end \ No newline at end of file