Update the json in the service callback task to read completed_at rather than updated_at

This commit is contained in:
Rebecca Law
2017-12-11 17:14:36 +00:00
parent 46c88db13d
commit a26588decd
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ def send_delivery_status_to_service(self, notification_id):
"to": notification.to,
"status": notification.status,
"created_at": notification.created_at.strftime(DATETIME_FORMAT), # the time GOV.UK email sent the request
"updated_at": notification.updated_at.strftime(DATETIME_FORMAT), # the last time the status was updated
"completed_at": notification.updated_at.strftime(DATETIME_FORMAT), # the last time the status was updated
"sent_at": notification.sent_at.strftime(DATETIME_FORMAT), # the time the email was sent
"notification_type": notification.notification_type
}