Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const sharedUpdater = (store, userId, paginationOptions, newEdge) => {
const userProxy = store.get(userId);
const conn = ConnectionHandler.getConnection(
userProxy,
'Pagination_organizations',
paginationOptions,
);
ConnectionHandler.insertEdgeBefore(conn, newEdge);
};
const sharedUpdater = (store, userId, paginationOptions, newEdge) => {
const userProxy = store.get(userId);
const conn = ConnectionHandler.getConnection(
userProxy,
'Pagination_externalReferences',
paginationOptions,
);
ConnectionHandler.insertEdgeBefore(conn, newEdge);
};
const sharedUpdater = (store, userId, paginationOptions, newEdge) => {
const userProxy = store.get(userId);
const conn = ConnectionHandler.getConnection(
userProxy,
'Pagination_workspaces',
paginationOptions,
);
ConnectionHandler.insertEdgeBefore(conn, newEdge);
};
const sharedUpdater = (store, userId, paginationOptions, newEdge) => {
const userProxy = store.get(userId);
const conn = ConnectionHandler.getConnection(
userProxy,
'Pagination_tools',
paginationOptions,
);
ConnectionHandler.insertEdgeBefore(conn, newEdge);
};
const sharedUpdater = (store, userId, paginationOptions, newEdge) => {
const userProxy = store.get(userId);
const conn = ConnectionHandler.getConnection(
userProxy,
'Pagination_users',
paginationOptions,
);
ConnectionHandler.insertEdgeBefore(conn, newEdge);
};
const sharedUpdater = (store, userId, paginationOptions, newEdge) => {
const userProxy = store.get(userId);
const conn = ConnectionHandler.getConnection(
userProxy,
'Pagination_threatActors',
paginationOptions,
);
ConnectionHandler.insertEdgeBefore(conn, newEdge);
};
const sharedUpdater = (store, userId, paginationOptions, newEdge) => {
const userProxy = store.get(userId);
const conn = ConnectionHandler.getConnection(
userProxy,
'Pagination_users',
paginationOptions,
);
ConnectionHandler.insertEdgeBefore(conn, newEdge);
};
const sharedUpdater = (store, userId, paginationOptions, newEdge) => {
const userProxy = store.get(userId);
const conn = ConnectionHandler.getConnection(
userProxy,
'Pagination_stixObservables',
paginationOptions,
);
ConnectionHandler.insertEdgeBefore(conn, newEdge);
};
const sharedUpdater = (store, userId, paginationOptions, newEdge) => {
const userProxy = store.get(userId);
const conn = ConnectionHandler.getConnection(
userProxy,
'Pagination_attackPatterns',
paginationOptions,
);
ConnectionHandler.insertEdgeBefore(conn, newEdge);
};
const sharedUpdater = (store, userId, paginationOptions, newEdge) => {
const userProxy = store.get(userId);
const conn = ConnectionHandler.getConnection(
userProxy,
'Pagination_stixDomainEntities',
paginationOptions,
);
ConnectionHandler.insertEdgeBefore(conn, newEdge);
};