added finally to close connection pool
This commit is contained in:
parent
c346ea7864
commit
44f6fca945
|
@ -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…
Reference in New Issue