fixes to getPoliciesByToken (#81)

This commit is contained in:
Kyle Spearrin 2020-03-02 11:37:44 -05:00 committed by GitHub
parent 4aecc53dde
commit 0f699515a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -566,8 +566,9 @@ export class ApiService implements ApiServiceAbstraction {
async getPoliciesByToken(organizationId: string, token: string, email: string, organizationUserId: string):
Promise<ListResponse<PolicyResponse>> {
const r = await this.send('GET', '/organizations/' + organizationId + '/policies?token=' + token +
'&email=' + email + '&organizationUserId=' + organizationUserId, null, false, true);
const r = await this.send('GET', '/organizations/' + organizationId + '/policies/token?' +
'token=' + encodeURIComponent(token) + '&email=' + encodeURIComponent(email) +
'&organizationUserId=' + organizationUserId, null, false, true);
return new ListResponse(r, PolicyResponse);
}