From 44f6fca945788ca7adb39f2f1e8e3fa932b6bb8c Mon Sep 17 00:00:00 2001 From: Christopher Pickering Date: Fri, 13 May 2022 09:34:31 -0500 Subject: [PATCH] added finally to close connection pool --- server/util-server.js | 2 ++ 1 file changed, 2 insertions(+) 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(); }); }); };