mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 23:26:23 -05:00
Save recipient address in process_sanitised_letter task
If the letter passed sanitisation, the recipient address will be returned from template preview, so we want to save this as the `to` field of the notification.
This commit is contained in:
@@ -347,7 +347,8 @@ def process_sanitised_letter(sanitise_data):
|
||||
update_letter_pdf_status(
|
||||
reference=notification.reference,
|
||||
status=NOTIFICATION_DELIVERED if is_test_key else NOTIFICATION_CREATED,
|
||||
billable_units=billable_units
|
||||
billable_units=billable_units,
|
||||
recipient_address=letter_details['address']
|
||||
)
|
||||
|
||||
except BotoClientError:
|
||||
|
||||
Reference in New Issue
Block a user