Skip to content

Commit

Permalink
Merge pull request #138 from osu-mist/feature/CO-2011-release-db-conn…
Browse files Browse the repository at this point in the history
…ections-master

CO-2011 Fix bug
  • Loading branch information
tsoliangwu0130 authored Mar 8, 2022
2 parents 8b14c1c + 57092b0 commit 8a8bae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/v1/db/oracledb/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const validateOracleDb = async () => {
};

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

export {
getConnection, validateOracleDb,
Expand Down

0 comments on commit 8a8bae5

Please sign in to comment.