Skip to content

Commit

Permalink
Fixes comment and removes unnecessary const
Browse files Browse the repository at this point in the history
  • Loading branch information
jeramysoucy committed Oct 13, 2023
1 parent 4fc5345 commit d0298fe
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,13 @@ function createOriginKueryFilter(

// If we are updating an object's spaces (as opposed to copying)...
if (purpose === 'updateObjectsSpaces') {
// we never want to match if the raw document `_id` fields.
// 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 idMatch = buildNode(
const notIdMatch = buildNode(KQL_FUNCTION_NOT, buildNode(
KQL_FUNCTION_IS,
`${type}.id`,
esKuery.escapeKuery(`${type}:${id}`)
);
const notIdMatch = buildNode(KQL_FUNCTION_NOT, idMatch);
));

// 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 d0298fe

Please sign in to comment.