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); resolve(result);
}).catch(err => { }).catch(err => {
reject(err); reject(err);
}).finally(() => {
mssql.close();
}); });
}); });
}; };