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