Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

Commit

Permalink
✨ End the pool connection
Browse files Browse the repository at this point in the history
  • Loading branch information
nattui committed Apr 11, 2020
1 parent f0b2a1b commit d42a33c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/js/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ const main = async () => {
// Gets the list of users
const users = await pool.query('SELECT * FROM users');
console.table(users.rows);

await pool.end();
} catch (err) {
console.log(err.stack);
}
Expand Down

0 comments on commit d42a33c

Please sign in to comment.