added finally to close connection pool

This commit is contained in:
Christopher Pickering 2022-05-13 09:34:31 -05:00
parent c346ea7864
commit 44f6fca945
No known key found for this signature in database
GPG key ID: E14DB3B0A0FACF84

View file

@ -223,6 +223,8 @@ exports.mssqlQuery = function (connectionString, query) {
resolve(result);
}).catch(err => {
reject(err);
}).finally(() => {
mssql.close();
});
});
};