diff --git a/server/util-server.js b/server/util-server.js index 0b3fce15b..9d289d5dd 100644 --- a/server/util-server.js +++ b/server/util-server.js @@ -223,6 +223,8 @@ exports.mssqlQuery = function (connectionString, query) { resolve(result); }).catch(err => { reject(err); + }).finally(() => { + mssql.close(); }); }); };