use new check api endpoints for validating invite tokens

added in https://github.com/alphagov/notifications-api/pull/3171
This commit is contained in:
Leo Hemsted
2021-03-12 15:57:46 +00:00
parent 45297eae43
commit bf979128ab
3 changed files with 4 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ class OrgInviteApiClient(NotifyAdminAPIClient):
)['data']
def check_token(self, token):
resp = self.get(url='/invite/organisation/{}'.format(token))
resp = self.get(url='/invite/organisation/check/{}'.format(token))
return resp['data']
def cancel_invited_user(self, org_id, invited_user_id):