mirror of
https://gitlab.com/nekoya/web.git
synced 2024-12-22 06:25:13 +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;
|
||||
}
|
||||
|
||||
function disconnect(connection) {
|
||||
connection.end();
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
connect
|
||||
connect,
|
||||
disconnect
|
||||
}
|
Loading…
Reference in a new issue