mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 02:11:11 -05:00
Refactored code to personalise subject
This commit is contained in:
@@ -49,7 +49,7 @@ post_template_preview_request = {
|
||||
"id": uuid,
|
||||
"personalisation": personalisation
|
||||
},
|
||||
"required": ["id", "personalisation"]
|
||||
"required": ["id"]
|
||||
}
|
||||
|
||||
post_template_preview_response = {
|
||||
@@ -68,11 +68,11 @@ post_template_preview_response = {
|
||||
}
|
||||
|
||||
|
||||
def create_post_template_preview_response(template, body):
|
||||
def create_post_template_preview_response(template, subject, body):
|
||||
return {
|
||||
"id": template.id,
|
||||
"type": template.template_type,
|
||||
"version": template.version,
|
||||
"body": body,
|
||||
"subject": template.subject
|
||||
"subject": subject
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user