mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-20 14:29:25 -04:00
make sure letters are handled properly by the v1 api
This commit is contained in:
@@ -468,7 +468,7 @@ class NotificationWithPersonalisationSchema(NotificationWithTemplateSchema):
|
||||
in_data['template'] = in_data.pop('template_history')
|
||||
template = get_template_instance(in_data['template'], in_data['personalisation'])
|
||||
in_data['body'] = str(template)
|
||||
if in_data['template']['template_type'] == models.EMAIL_TYPE:
|
||||
if in_data['template']['template_type'] != models.SMS_TYPE:
|
||||
in_data['subject'] = template.subject
|
||||
in_data['content_char_count'] = None
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user