From 2846aa8618a739feb1c14b41b4dd0c256cd4b1cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Te=C3=B3filo=20Monteiro?= Date: Fri, 27 Sep 2024 12:32:44 +0200 Subject: [PATCH] fix some issues with the PR --- src/api/deprecated.ts | 4 ++-- src/api/resources.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/deprecated.ts b/src/api/deprecated.ts index 36f4d57..819c982 100644 --- a/src/api/deprecated.ts +++ b/src/api/deprecated.ts @@ -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; this.logger.debug(`[${response.status}] permit.api.listRoles()`); return response.data; diff --git a/src/api/resources.ts b/src/api/resources.ts index bf0c1a5..1d5c9eb 100644 --- a/src/api/resources.ts +++ b/src/api/resources.ts @@ -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.