Skip to content

Commit

Permalink
Fix typo in Query Decorator example in docs (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianmroz-allegro authored Dec 1, 2021
1 parent d87d63d commit a74c0e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/extending-turnilo.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ exports.decorator = function (expression, request, options, plywood) {
const filterClause = plywood.$(userColumnName).in([userId]); // show only rows where `userColumnName` is equal to current user id.
return expression.substitute(e => {
if (e instanceof plywood.RefExpression && e.name === "main") { // filter all main expression references
e.filter(filterClause);
return e.filter(filterClause);
}
return null;
});
Expand Down

0 comments on commit a74c0e1

Please sign in to comment.