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:
Carlo Costino
2023-07-03 15:06:06 -04:00
parent faf0c9c629
commit 9f88af0ac2
3 changed files with 5 additions and 15 deletions

View File

@@ -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: