-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(api-elasticsearch-tasks): add missing context variables
- Loading branch information
1 parent
e6ea8b0
commit cbfc135
Showing
6 changed files
with
81 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...api-elasticsearch-tasks/src/tasks/createIndexes/listCreateElasticsearchIndexTaskPlugin.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { CreateElasticsearchIndexTaskPlugin } from "~/tasks/createIndexes/CreateElasticsearchIndexTaskPlugin"; | ||
import type { Context } from "~/types"; | ||
import type { PluginsContainer } from "@webiny/plugins"; | ||
|
||
export const listCreateElasticsearchIndexTaskPlugin = <C extends Context = Context>( | ||
plugins: PluginsContainer | ||
): CreateElasticsearchIndexTaskPlugin<C>[] => { | ||
return plugins.byType<CreateElasticsearchIndexTaskPlugin<Context>>( | ||
CreateElasticsearchIndexTaskPlugin.type | ||
); | ||
}; |
16 changes: 5 additions & 11 deletions
16
packages/api-elasticsearch-tasks/src/tasks/createIndexes/listIndexes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters