Skip to content

Commit

Permalink
HCK-8543: multi-db labels querying (#52)
Browse files Browse the repository at this point in the history
* fix: pass the database name argument properly

* fix: provided default value when labels were not resolved
  • Loading branch information
chulanovskyi-bs authored Oct 24, 2024
1 parent 7c83360 commit 6ae61f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reverse_engineering/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ module.exports = {
logger.log('info', `Fetching the labels from ${databaseName}`, step);
results.push({
dbName: databaseName,
dbCollections: await neo4j.getLabels({ databaseName, isMultiDb, logger }),
dbCollections: await neo4j.getLabels({ database: databaseName, isMultiDb, logger }),
});
}

Expand Down Expand Up @@ -324,7 +324,7 @@ const logInfo = (step, connectionInfo, logger) => {
logger.log('info', connectionInfo, 'connectionInfo', connectionInfo.hiddenKeys);
};

const getNodesData = ({ dbName, labels, isMultiDb, data, logger }) => {
const getNodesData = ({ dbName, labels = [], isMultiDb, data, logger }) => {
const logProgress = (entityName, message) => {
const step = `Preparing package for "${entityName}"`;

Expand Down

0 comments on commit 6ae61f0

Please sign in to comment.