Skip to content

Commit

Permalink
fix(project): modify endpoint return type (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
agong-coveo authored May 29, 2024
1 parent 25b4b17 commit 4906375
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/resources/Projects/Project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ export default class Project extends Resource {
*
* @param {ProjectResourceType} resourceType
* @param {string[]} resourceIds
* @returns {Promise<ListAssociatedProjectsModel>} List of project IDs associated to the provided resource IDs.
* @returns {Promise<ListAssociatedProjectsModel[]>} List of project IDs associated to the provided resource IDs.
*/
listAssociatedProjects(
resourceType: ProjectResourceType,
resourceIds: string[],
): Promise<ListAssociatedProjectsModel> {
return this.api.post<ListAssociatedProjectsModel>(
): Promise<ListAssociatedProjectsModel[]> {
return this.api.post<ListAssociatedProjectsModel[]>(
this.buildPath(`${Project.baseUrl}/resources/ids`, {resourceType}),
resourceIds,
);
Expand Down

0 comments on commit 4906375

Please sign in to comment.