Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
Browse files Browse the repository at this point in the history
…-ref HEAD~1..HEAD --fix'
  • Loading branch information
kibanamachine committed Oct 13, 2023
1 parent d0298fe commit a2288ce
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,10 @@ function createOriginKueryFilter(
if (purpose === 'updateObjectsSpaces') {
// we never want to match on the raw document `_id` fields.
// If they are equal, this just means that the object already exists in that space and it's ok.
const notIdMatch = buildNode(KQL_FUNCTION_NOT, buildNode(
KQL_FUNCTION_IS,
`${type}.id`,
esKuery.escapeKuery(`${type}:${id}`)
));
const notIdMatch = buildNode(
KQL_FUNCTION_NOT,
buildNode(KQL_FUNCTION_IS, `${type}.id`, esKuery.escapeKuery(`${type}:${id}`))
);

// If this object has an origin ID, then we do still want to match if another object's ID matches the
// object's origin (idMatchesOrigin), or if another object's origin matches the object's origin (originMatch).
Expand Down

0 comments on commit a2288ce

Please sign in to comment.