mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Check the uniqueness of the service name ignoring case.
When the service name changes the email_from changes to. Renamed find_all_service_names to find_all_service_names_lower.
This commit is contained in:
@@ -142,7 +142,7 @@ class ServiceAPIClient(NotificationsAPIClient):
|
||||
endpoint = "/service/{0}/template/{1}".format(service_id, template_id)
|
||||
return self.delete(endpoint)
|
||||
|
||||
def find_all_service_names(self, user_id=None):
|
||||
def find_all_service_names_lower(self, user_id=None):
|
||||
resp = self.get_services(user_id)
|
||||
return [x['name'].lower() for x in resp['data']]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user