From 4906375031c4e1fd73ae3f18e4b220577b2cbb53 Mon Sep 17 00:00:00 2001 From: Alice Gong <105073504+agong-coveo@users.noreply.github.com> Date: Wed, 29 May 2024 10:01:26 -0400 Subject: [PATCH] fix(project): modify endpoint return type (#825) --- src/resources/Projects/Project.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/resources/Projects/Project.ts b/src/resources/Projects/Project.ts index bd0b8317b..277720bb4 100644 --- a/src/resources/Projects/Project.ts +++ b/src/resources/Projects/Project.ts @@ -98,13 +98,13 @@ export default class Project extends Resource { * * @param {ProjectResourceType} resourceType * @param {string[]} resourceIds - * @returns {Promise} List of project IDs associated to the provided resource IDs. + * @returns {Promise} List of project IDs associated to the provided resource IDs. */ listAssociatedProjects( resourceType: ProjectResourceType, resourceIds: string[], - ): Promise { - return this.api.post( + ): Promise { + return this.api.post( this.buildPath(`${Project.baseUrl}/resources/ids`, {resourceType}), resourceIds, );