mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-21 17:50:50 -04:00
Merge pull request #1316 from alphagov/outbound-body
Look at `body`, not `template` in outbound texts
This commit is contained in:
@@ -46,7 +46,7 @@ def get_sms_thread(service_id, user_number):
|
||||
'inbound': is_inbound,
|
||||
'content': SMSPreviewTemplate(
|
||||
{
|
||||
'content': notification.get('content') or notification['template']['content']
|
||||
'content': notification.get('content') or notification['body']
|
||||
},
|
||||
downgrade_non_gsm_characters=(not is_inbound)
|
||||
),
|
||||
|
||||
@@ -249,8 +249,8 @@ def notification_json(
|
||||
'id': template['id'],
|
||||
'name': template['name'],
|
||||
'template_type': template['template_type'],
|
||||
'content': template['content'],
|
||||
},
|
||||
'body': template['content'],
|
||||
'job': job_payload,
|
||||
'sent_at': sent_at,
|
||||
'status': status,
|
||||
|
||||
Reference in New Issue
Block a user