mirror of
https://gitlab.com/nekoya/web.git
synced 2024-12-22 22:45:10 +01:00
Add disconnect function to db
This commit is contained in:
parent
7fc8927f19
commit
876ae8d48a
1 changed files with 6 additions and 1 deletions
|
@ -13,6 +13,11 @@ function connect() {
|
||||||
return connection;
|
return connection;
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
function disconnect(connection) {
|
||||||
connect
|
connection.end();
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
connect,
|
||||||
|
disconnect
|
||||||
}
|
}
|
Loading…
Reference in a new issue