mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-17 11:44:38 -05:00
added finally to close connection pool
This commit is contained in:
parent
c346ea7864
commit
44f6fca945
@ -223,6 +223,8 @@ exports.mssqlQuery = function (connectionString, query) {
|
||||
resolve(result);
|
||||
}).catch(err => {
|
||||
reject(err);
|
||||
}).finally(() => {
|
||||
mssql.close();
|
||||
});
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user