From 6ae61f066a0b318b7993964b3119aa43ba69dbbb Mon Sep 17 00:00:00 2001 From: chulanovskyi-bs <56116665+chulanovskyi-bs@users.noreply.github.com> Date: Thu, 24 Oct 2024 12:47:30 +0300 Subject: [PATCH] HCK-8543: multi-db labels querying (#52) * fix: pass the database name argument properly * fix: provided default value when labels were not resolved --- reverse_engineering/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reverse_engineering/api.js b/reverse_engineering/api.js index 5a3e57a..115a431 100644 --- a/reverse_engineering/api.js +++ b/reverse_engineering/api.js @@ -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 }), }); } @@ -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}"`;