mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
Merge pull request #1482 from alphagov/update-callback-json
Update JSON in callback task
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user