Skip to content

Commit

Permalink
Merge pull request #40 from osu-mist/feature/CO-2016-release-db-conne…
Browse files Browse the repository at this point in the history
…ctions

CO-2016 release db connections
  • Loading branch information
tsoliangwu0130 authored Mar 8, 2022
2 parents a2969d3 + d04a2b2 commit 88ba8fb
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 88ba8fb

Please sign in to comment.