mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
code review feedback
This commit is contained in:
@@ -190,7 +190,7 @@ class ServiceAPIClient(NotifyAdminAPIClient):
|
|||||||
@cache.delete('service-{service_id}-templates')
|
@cache.delete('service-{service_id}-templates')
|
||||||
@cache.delete_by_pattern('service-{service_id}-template-*')
|
@cache.delete_by_pattern('service-{service_id}-template-*')
|
||||||
def update_service_template(
|
def update_service_template(
|
||||||
self, id_, name, type_, content, service_id, subject=None, process_type=None
|
self, id_, name, type_, content, service_id, subject=None
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Update a service template.
|
Update a service template.
|
||||||
@@ -206,10 +206,9 @@ class ServiceAPIClient(NotifyAdminAPIClient):
|
|||||||
data.update({
|
data.update({
|
||||||
'subject': subject
|
'subject': subject
|
||||||
})
|
})
|
||||||
if process_type:
|
data.update({
|
||||||
data.update({
|
'process_type': 'normal'
|
||||||
'process_type': process_type
|
})
|
||||||
})
|
|
||||||
data = _attach_current_user(data)
|
data = _attach_current_user(data)
|
||||||
endpoint = "/service/{0}/template/{1}".format(service_id, id_)
|
endpoint = "/service/{0}/template/{1}".format(service_id, id_)
|
||||||
return self.post(endpoint, data)
|
return self.post(endpoint, data)
|
||||||
|
|||||||
Reference in New Issue
Block a user