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.

Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
AWSHurneyt committed Apr 1, 2023
1 parent 145a1e9 commit 3a1e8b1
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 3a1e8b1

Please sign in to comment.