this.ysMemberSeq.transaction(async (t: sequelize.Transaction) => { //sql查询语句 return t; }).then((result) => { console.log("result:", result) }).catch((err) => { console.log("err:", err) })
你都catch了,外层收不到异常,怎么执行回滚呢?
2.1m questions
2.1m answers
60 comments
57.0k users