Skip to content

Commit 2846aa8

Browse files
fix some issues with the PR
1 parent 441a84b commit 2846aa8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/api/deprecated.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ export class DeprecatedApiClient extends BasePermitApi implements IDeprecatedPer
179179
await this.ensureContext(ApiContextLevel.ENVIRONMENT);
180180

181181
try {
182-
const response = await this._roles.listRoles({
182+
const response = (await this._roles.listRoles({
183183
...this.config.apiContext.environmentContext,
184-
});
184+
})) as AxiosResponse<RoleRead[]>;
185185

186186
this.logger.debug(`[${response.status}] permit.api.listRoles()`);
187187
return response.data;

src/api/resources.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export class ResourcesApi extends BasePermitApi implements IResourcesApi {
128128
/**
129129
* Retrieves a list of resources.
130130
*
131-
* @param pagination The pagination options, @see {@link IBasePaginationExtended}
131+
* @param pagination The pagination options, @see {@link IPaginationExtended}
132132
* @returns A promise that resolves to an array of resources.
133133
* @throws {@link PermitApiError} If the API returns an error HTTP status code.
134134
* @throws {@link PermitContextError} If the configured {@link ApiContext} does not match the required endpoint context.

0 commit comments

Comments
 (0)