mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-22 00:11:16 -05:00
Return status code 304 when template is not updated.
Moved import
This commit is contained in:
@@ -64,7 +64,7 @@ def update_template(service_id, template_id):
|
||||
update_template['content'] = _strip_html(update_template['content'])
|
||||
# Check if there is a change to make.
|
||||
if current_data == update_template:
|
||||
return jsonify(data=update_template), 200
|
||||
return jsonify(data=update_template), 304
|
||||
|
||||
update_dict, errors = template_schema.load(update_template)
|
||||
if errors:
|
||||
|
||||
Reference in New Issue
Block a user