add the return statement and you will report an error, but if you don"t add it, you will ok,. Why?
router.post("/aaaa", upload.any(), function (req, res, next) {
sql.getConnection(function (err, connection) {
if (err) throw err;
connection.query({
sql: "sql",
timeout: 40000, // 40s
values: [111, 0, 10]
}, function (error, results, fields) {
if (error) throw error;
res.send(JSON.stringify({
resultCode: "00000",
resultMsg: "",
data: results
}));
});
connection.release();
});
//return;
});