Skip to content

Commit

Permalink
Update app/jobs/socure_shadow_mode_proofing_job.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Zach Margolis <[email protected]>
  • Loading branch information
matthinz and zachmargolis authored Aug 26, 2024
1 parent 524ad3a commit 5274082
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/jobs/socure_shadow_mode_proofing_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,8 @@ def create_analytics(
end

def format_proofing_result_for_logs(proofing_result)
proofing_result.to_h.then do |hash|
hash[:context][:stages][:threatmetrix].delete(:response_body)
hash
rescue
hash
proofing_result.to_h.tap do |hash|
hash.dig(:context, :stages, :threatmetrix)&.delete(:response_body)
end
end

Expand Down

0 comments on commit 5274082

Please sign in to comment.