Skip to content

Commit

Permalink
fix some issues with the PR
Browse files Browse the repository at this point in the history
  • Loading branch information
teofilomonteiro committed Sep 27, 2024
1 parent 441a84b commit 2846aa8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/api/deprecated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ export class DeprecatedApiClient extends BasePermitApi implements IDeprecatedPer
await this.ensureContext(ApiContextLevel.ENVIRONMENT);

try {
const response = await this._roles.listRoles({
const response = (await this._roles.listRoles({
...this.config.apiContext.environmentContext,
});
})) as AxiosResponse<RoleRead[]>;

this.logger.debug(`[${response.status}] permit.api.listRoles()`);
return response.data;
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class ResourcesApi extends BasePermitApi implements IResourcesApi {
/**
* Retrieves a list of resources.
*
* @param pagination The pagination options, @see {@link IBasePaginationExtended}
* @param pagination The pagination options, @see {@link IPaginationExtended}
* @returns A promise that resolves to an array of resources.
* @throws {@link PermitApiError} If the API returns an error HTTP status code.
* @throws {@link PermitContextError} If the configured {@link ApiContext} does not match the required endpoint context.
Expand Down

0 comments on commit 2846aa8

Please sign in to comment.