Skip to content

Commit

Permalink
fix: Fixing a misspelling
Browse files Browse the repository at this point in the history
  • Loading branch information
chrsdietz committed Jan 5, 2022
1 parent fe46834 commit 08e178e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface Parameters {
}

export interface ShouldSwapIndicesOfAliasesObj {
reIndexPipline: string;
reIndexPipeline: string;
}

export type ShouldSwapIndicesOfAlias = boolean | ShouldSwapIndicesOfAliasesObj;
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ async function setupTemplates(baseUrl: string, templates: Template[] = [], opts:

const { shouldSwapIndicesOfAliases } = template;
if (!!template.shouldSwapIndicesOfAliases) {
const reIndexPipeline = typeof shouldSwapIndicesOfAliases === "object" ? shouldSwapIndicesOfAliases.reIndexPipline : undefined;
const reIndexPipeline = typeof shouldSwapIndicesOfAliases === "object" ? shouldSwapIndicesOfAliases.reIndexPipeline : undefined;
// Retrieving template that already exists.
const previous = await returnPreviousTemplates(baseUrl, template.name, requestOptions, credentials);

Expand Down
2 changes: 1 addition & 1 deletion test/Plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ describe("Plugin", () => {
name: "TestTemplate1",
file: "./test/testFiles/TestTemplate1.json",
shouldSwapIndicesOfAliases: {
reIndexPipline: "TestPipeline"
reIndexPipeline: "TestPipeline"
}
}];

Expand Down

0 comments on commit 08e178e

Please sign in to comment.