Fix: Use .destroy() instead of .end()

This commit is contained in:
Nelson Chan 2023-02-07 05:01:53 +08:00 committed by GitHub
parent 0197778af1
commit e1f956879d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -323,7 +323,7 @@ exports.mysqlQuery = function (connectionString, query) {
reject(err);
})
.finally(() => {
connection.end();
connection.destroy();
});
});
};