mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 07:21:13 -05:00
Avoid call to database to get template in persist_notifications
This commit is contained in:
@@ -77,6 +77,7 @@ def send_one_off_notification(service_id, post_data):
|
||||
notification = persist_notification(
|
||||
template_id=template.id,
|
||||
template_version=template.version,
|
||||
template_postage=template.postage,
|
||||
recipient=post_data['to'],
|
||||
service=service,
|
||||
personalisation=personalisation,
|
||||
|
||||
Reference in New Issue
Block a user