Add disconnect function to db

This commit is contained in:
Moe Poi ~ 2021-11-22 00:07:43 +07:00
parent 7fc8927f19
commit 876ae8d48a

View file

@ -13,6 +13,11 @@ function connect() {
return connection; return connection;
} }
module.exports = { function disconnect(connection) {
connect connection.end();
}
module.exports = {
connect,
disconnect
} }