mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 18:31:13 -05:00
Fix poorly written sentence
This commit is contained in:
@@ -15,7 +15,7 @@ from app.v2.utils import get_valid_json
|
|||||||
|
|
||||||
@v2_template_blueprint.route("/<template_id>/preview", methods=['POST'])
|
@v2_template_blueprint.route("/<template_id>/preview", methods=['POST'])
|
||||||
def post_template_preview(template_id):
|
def post_template_preview(template_id):
|
||||||
# If the payload is is empty if there is no personalisation in the template.
|
# The payload is empty when there are no place holders in the template.
|
||||||
_data = request.get_data(as_text=True)
|
_data = request.get_data(as_text=True)
|
||||||
if not _data:
|
if not _data:
|
||||||
_data = {}
|
_data = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user