From 0f699515a40c2ab61683eadec8443d4c63da6536 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 2 Mar 2020 11:37:44 -0500 Subject: [PATCH] fixes to getPoliciesByToken (#81) --- src/services/api.service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/services/api.service.ts b/src/services/api.service.ts index a09d9e230b..b57ea4b824 100644 --- a/src/services/api.service.ts +++ b/src/services/api.service.ts @@ -566,8 +566,9 @@ export class ApiService implements ApiServiceAbstraction { async getPoliciesByToken(organizationId: string, token: string, email: string, organizationUserId: string): Promise> { - 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); }