Skip to content

Commit

Permalink
Fix more types
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo committed Aug 19, 2024
1 parent 9173fc3 commit 99f1d31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/kbn-grouping/src/containers/query/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

import type {
InlineScript,
Script,
MappingRuntimeField,
MappingRuntimeFields,
} from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
Expand Down Expand Up @@ -52,7 +52,7 @@ export interface MainAggregation extends NamedAggregation {
}

export interface GroupingRuntimeField extends MappingRuntimeField {
script: InlineScript & {
script: Script & {
params: Record<string, any>;
};
}
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/task_manager/server/task_store.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,7 @@ describe('TaskStore', () => {
childEsClient.updateByQuery.mockResponse({
hits: { hits: [], total: 0, updated: 100, version_conflicts: 0 },
} as UpdateByQueryResponse);
await store.updateByQuery({ script: '' }, { max_docs: 10 });
await store.updateByQuery({ script: { source: '' } }, { max_docs: 10 });
expect(childEsClient.updateByQuery).toHaveBeenCalledWith(expect.any(Object), {
requestTimeout: 1000,
});
Expand Down

0 comments on commit 99f1d31

Please sign in to comment.