1
0
Fork 0
mirror of https://gitlab.com/nekoya/web.git synced 2025-04-25 21:48:01 +02:00

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;
}
function disconnect(connection) {
connection.end();
}
module.exports = {
connect
connect,
disconnect
}