Skip to content

Commit

Permalink
HCK-7485: fix re api disconnect parameters inconsistency (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
dannleed authored Aug 7, 2024
1 parent a55d705 commit 46f9160
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions reverse_engineering/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const neptuneHelper = require('./neptuneHelper');
const queryHelper = require('./queryHelper');

module.exports = {
disconnect: function (connectionInfo, cb) {
disconnect: function (connectionInfo, logger, cb, app) {
connectionHelper.close();
neptuneHelper.close();
cb();
Expand Down Expand Up @@ -36,11 +36,11 @@ module.exports = {

logger.log('info', { 'message': 'Successfully connected to Neptune Database' }, 'Test connection');

this.disconnect(connectionInfo, () => {});
this.disconnect(connectionInfo, logger, () => {});

cb();
} catch (error) {
this.disconnect(connectionInfo, () => {});
this.disconnect(connectionInfo, logger, () => {});
logger.log('error', prepareError(error));
cb({ message: 'Connection error', stack: error.stack });
}
Expand Down

0 comments on commit 46f9160

Please sign in to comment.