added finally to close connection pool

pull/1636/head
Christopher Pickering 3 years ago
parent c346ea7864
commit 44f6fca945
No known key found for this signature in database
GPG Key ID: E14DB3B0A0FACF84

@ -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…
Cancel
Save