mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 12:00:35 +03:00
added finally to close connection pool
This commit is contained in:
parent
c346ea7864
commit
44f6fca945
1 changed files with 2 additions and 0 deletions
|
@ -223,6 +223,8 @@ exports.mssqlQuery = function (connectionString, query) {
|
|||
resolve(result);
|
||||
}).catch(err => {
|
||||
reject(err);
|
||||
}).finally(() => {
|
||||
mssql.close();
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue