Skip to content

Commit

Permalink
update failure notification email job
Browse files Browse the repository at this point in the history
  • Loading branch information
pmclaren19 committed Dec 21, 2024
1 parent b383192 commit 53306f9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ def notify_client

def send_failed_evidence_submissions
failed_uploads.each do |upload|
personalisation = JSON.parse(upload.template_metadata_ciphertext)['personalisation']
response = notify_client.send_email(
recipient_identifier: { id_value: upload.user_account.icn, id_type: 'ICN' },
template_id: MAILER_TEMPLATE_ID,
personalisation: upload.template_metadata_ciphertext['personalisation']
personalisation:
)
record_email_send_success(upload, response)
rescue => e
Expand Down

0 comments on commit 53306f9

Please sign in to comment.