mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
Avoid call to database to get template in persist_notifications
This commit is contained in:
@@ -7,6 +7,7 @@ def create_letter_notification(letter_data, template, api_key, status, reply_to_
|
||||
notification = persist_notification(
|
||||
template_id=template.id,
|
||||
template_version=template.version,
|
||||
template_postage=template.postage,
|
||||
# we only accept addresses_with_underscores from the API (from CSV we also accept dashes, spaces etc)
|
||||
recipient=letter_data['personalisation']['address_line_1'],
|
||||
service=template.service,
|
||||
|
||||
Reference in New Issue
Block a user