Skip to content

Commit

Permalink
fix: change return type for getAllowedRolesByIssuer
Browse files Browse the repository at this point in the history
`getAllowedRolesByIssuer` is currently returning the role definition.
  • Loading branch information
Harasz committed Feb 9, 2022
1 parent b1141eb commit 742f744
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/api/classes/CacheClient.md
Expand Up @@ -132,7 +132,7 @@ ___

### getAllowedRolesByIssuer

**getAllowedRolesByIssuer**(`did`): `Promise`<`string`[]\>
**getAllowedRolesByIssuer**(`did`): `Promise`<[`IRole`](../interfaces/IRole.md)[]\>

#### Parameters

Expand All @@ -142,7 +142,7 @@ ___

#### Returns

`Promise`<`string`[]\>
`Promise`<[`IRole`](../interfaces/IRole.md)[]\>

___

Expand Down
4 changes: 2 additions & 2 deletions docs/api/classes/DomainsService.md
Expand Up @@ -294,7 +294,7 @@ ___

### getAllowedRolesByIssuer

**getAllowedRolesByIssuer**(`did`): `Promise`<`string`[]\>
**getAllowedRolesByIssuer**(`did`): `Promise`<[`IRole`](../interfaces/IRole.md)[]\>

getAllowedRolesByIssuer

Expand All @@ -308,7 +308,7 @@ getAllowedRolesByIssuer

#### Returns

`Promise`<`string`[]\>
`Promise`<[`IRole`](../interfaces/IRole.md)[]\>

array of roles that the DID can issue

Expand Down
2 changes: 1 addition & 1 deletion src/modules/cacheClient/cacheClient.service.ts
Expand Up @@ -283,7 +283,7 @@ export class CacheClient implements ICacheClient {
}

async getAllowedRolesByIssuer(did: string) {
const { data } = await this.httpClient.get<string[]>(`/claim/issuer/roles/allowed/${did}`);
const { data } = await this.httpClient.get<IRole[]>(`/claim/issuer/roles/allowed/${did}`);
return data;
}

Expand Down

0 comments on commit 742f744

Please sign in to comment.