mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 08:31:00 -04:00
Fix create and update template method calls
The removal of the process_type argument was causing a couple of the method calls to break since they were still sending in the argument. This commit fixes that and updates the corresponding tests as well. h/t @terrazoon for uncovering the touchpoints originally! Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -451,7 +451,6 @@ def add_service_template(service_id, template_type, template_folder_id=None):
|
||||
form.template_content.data,
|
||||
service_id,
|
||||
form.subject.data if hasattr(form, 'subject') else None,
|
||||
form.process_type.data,
|
||||
template_folder_id
|
||||
)
|
||||
except HTTPError as e:
|
||||
@@ -525,8 +524,7 @@ def edit_service_template(service_id, template_id):
|
||||
template['template_type'],
|
||||
form.template_content.data,
|
||||
service_id,
|
||||
subject,
|
||||
form.process_type.data,
|
||||
subject
|
||||
)
|
||||
except HTTPError as e:
|
||||
if e.status_code == 400:
|
||||
|
||||
Reference in New Issue
Block a user