Merge pull request #1482 from alphagov/update-callback-json

Update JSON in callback task
This commit is contained in:
Rebecca Law
2017-12-12 10:03:04 +00:00
committed by GitHub
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
}

View File

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