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