Skip to content

Commit

Permalink
Fixed a bug with doc level trigger creation. See issue 448 for more d…
Browse files Browse the repository at this point in the history
…etails. (opensearch-project#513)

Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
AWSHurneyt committed Apr 18, 2023
1 parent f8d6205 commit 92192fc
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ export function getDocumentLevelScriptSource(conditions) {
}
if (!_.isEmpty(query) && !_.isEmpty(query.queryName)) {
const queryExpression = _.get(query, 'expression');
const operator = query.operator === '!=' ? '!' : '';
scriptSourceContents.push(`${operator}query[${queryExpression}]`);
scriptSourceContents.push(`query[${queryExpression}]`);
}
});
return scriptSourceContents.join(' ');
Expand Down

0 comments on commit 92192fc

Please sign in to comment.