mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-04 21:40:23 -04:00
Remove methods for checking service/org name uniqueness
We don’t use these now – instead we try to update the name and see if it works or not.
This commit is contained in:
@@ -81,12 +81,6 @@ class OrganisationsClient(NotifyAdminAPIClient):
|
||||
data = _attach_current_user({})
|
||||
return self.delete(endpoint, data)
|
||||
|
||||
def is_organisation_name_unique(self, org_id, name):
|
||||
return self.get(
|
||||
url="/organisations/unique",
|
||||
params={"org_id": org_id, "name": name}
|
||||
)["result"]
|
||||
|
||||
def get_services_and_usage(self, org_id, year):
|
||||
return self.get(
|
||||
url=f"/organisations/{org_id}/services-with-usage",
|
||||
|
||||
Reference in New Issue
Block a user