Skip to content

Commit

Permalink
Merge pull request #59 from coveo/fix-missing-association-org-id
Browse files Browse the repository at this point in the history
fix(associations): fix missing parameter when fetching associations
  • Loading branch information
GermainBergeron authored Dec 12, 2019
2 parents d6883fe + b865888 commit 18e044b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/resources/Pipelines/MLAssociations/MLAssociations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export default class MLAssociations extends Resource {
static getBaseUrl = (pipelineId: string) => `/rest/search/v2/admin/pipelines/${pipelineId}/ml/model/associations`;

list(pipelineId: string, options?: ListAssociationsParams) {
return this.api.get<AssociationsListModel>(this.buildPath(MLAssociations.getBaseUrl(pipelineId), options));
return this.api.get<AssociationsListModel>(
this.buildPath(MLAssociations.getBaseUrl(pipelineId), {organizationId: this.api.organizationId, ...options})
);
}

associate(pipelineId: string, options: CreateAssociation) {
Expand Down

0 comments on commit 18e044b

Please sign in to comment.