mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
Merge pull request #3187 from alphagov/remove-unecessary-code
Simplify send_delivery_status_to_service code
This commit is contained in:
@@ -24,13 +24,10 @@ def send_delivery_status_to_service(
|
|||||||
"created_at": status_update['notification_created_at'],
|
"created_at": status_update['notification_created_at'],
|
||||||
"completed_at": status_update['notification_updated_at'],
|
"completed_at": status_update['notification_updated_at'],
|
||||||
"sent_at": status_update['notification_sent_at'],
|
"sent_at": status_update['notification_sent_at'],
|
||||||
"notification_type": status_update['notification_type']
|
"notification_type": status_update['notification_type'],
|
||||||
|
"template_id": status_update['template_id'],
|
||||||
|
"template_version": status_update['template_version']
|
||||||
}
|
}
|
||||||
# TODO: set the template_id and template_version keys when data dict is created once this change has
|
|
||||||
# been deployed long enough for all tasks to have those keys in status_update
|
|
||||||
if status_update.get("template_id"):
|
|
||||||
data["template_id"] = status_update['template_id']
|
|
||||||
data["template_version"] = status_update['template_version']
|
|
||||||
|
|
||||||
_send_data_to_service_callback_api(
|
_send_data_to_service_callback_api(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user