mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00: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);
|
resolve(result);
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
reject(err);
|
reject(err);
|
||||||
|
}).finally(() => {
|
||||||
|
mssql.close();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue