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

View File

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