Skip to content

Commit

Permalink
build: fix ts error on build
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz authored Jul 18, 2022
1 parent 403f8cb commit a468b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elasticDSL/Aggs/Aggs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function convertAggsRules(rules: GqlAggRules): ElasticAggsRulesT {
if (key === 'aggs' && rules.aggs) {
result.aggs = convertAggsBlocks(rules.aggs);
} else if (Array.isArray(rules[key])) {
result[key.replace(/__/g, '.')] = rules[key].map((rule) => convertAggsRules(rule));
result[key.replace(/__/g, '.')] = rules[key].map((rule: any) => convertAggsRules(rule));
} else if (typeof rules[key] === 'object') {
result[key.replace(/__/g, '.')] = convertAggsRules(rules[key]);
} else {
Expand Down

0 comments on commit a468b9e

Please sign in to comment.