mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
Remove services_dao.insert_new_service.
Update api_client.create_service to return the service id. Fix unit tests.
This commit is contained in:
@@ -27,7 +27,7 @@ class NotificationsAdminAPIClient(NotificationsAPIClient):
|
||||
"user_id": user_id,
|
||||
"restricted": restricted
|
||||
}
|
||||
return self.post("/service", data)
|
||||
return self.post("/service", data)['data']['id']
|
||||
|
||||
def delete_service(self, service_id):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user