Skip to content

Commit

Permalink
Merge remote-tracking branch 'skeleton/master' into feature/CO-2016-r…
Browse files Browse the repository at this point in the history
…elease-db-connections
  • Loading branch information
tsoliangwu0130 committed Mar 8, 2022
2 parents a2969d3 + 8a8bae5 commit d04a2b2
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 44 deletions.
87 changes: 43 additions & 44 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/api/v1/db/oracledb/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ const validateOracleDb = async () => {
}
};

// Close the pool when application is stopped
process.on('exit', () => { if (pool && pool.close) pool.close(); });

export {
getConnection, validateOracleDb,
};

0 comments on commit d04a2b2

Please sign in to comment.