Skip to content

Commit

Permalink
fix: mark all nodes as non-highvalue when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
rvazarkar committed Feb 12, 2022
1 parent 791b3bb commit 2e6002c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Menu/MenuContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,11 @@ const MenuContainer = () => {
console.log(err);
});

const baseHighValueStatement = "MATCH (n:Base) WHERE NOT EXISTS(n.highvalue) SET n.highvalue = false"
await session.run(baseHighValueStatement, null).catch((err) => {
console.log(err);
});

const dUsersSids = ["S-1-1-0", "S-1-5-11"]
const domainUsersAssociationStatement = "MATCH (n:Group) WHERE n.objectid ENDS WITH '-513' OR n.objectid ENDS WITH '-515' WITH n UNWIND $sids AS sid MATCH (m:Group) WHERE m.objectid ENDS WITH sid MERGE (n)-[:MemberOf]->(m)"
await session.run(domainUsersAssociationStatement, {sids: dUsersSids}).catch((err) => {
Expand Down

0 comments on commit 2e6002c

Please sign in to comment.