mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-10 10:03:38 -04:00
Included reference when persisting the notification.
This was already part of the data model. Not included in the send_sms|email task because there is no reference from the job.
This commit is contained in:
@@ -101,7 +101,7 @@ post_email_response = {
|
||||
|
||||
def create_post_sms_response_from_notification(notification, body, from_number, url_root):
|
||||
return {"id": notification.id,
|
||||
"reference": None, # not yet implemented
|
||||
"reference": notification.reference,
|
||||
"content": {'body': body,
|
||||
'from_number': from_number},
|
||||
"uri": "{}/v2/notifications/{}".format(url_root, str(notification.id)),
|
||||
|
||||
Reference in New Issue
Block a user