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. (#513)

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 45ea4b9)
  • Loading branch information
AWSHurneyt authored and github-actions[bot] committed Apr 17, 2023
1 parent 58dee83 commit be97d07
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 be97d07

Please sign in to comment.