|
@@ -665,7 +665,7 @@ module.exports = app => {
|
|
|
c_name: this.ctx.change.name,
|
|
|
};
|
|
|
await this.ctx.helper.sendWechat(audit.uid, smsTypeConst.const.BG, smsTypeConst.judge.approval.toString(), wxConst.template.change, wechatData);
|
|
|
- await this.transaction.delete(this.ctx.service.changeHistory.tableName, { cid });
|
|
|
+ await transaction.delete(this.ctx.service.changeHistory.tableName, { cid });
|
|
|
await transaction.commit();
|
|
|
} catch (err) {
|
|
|
await transaction.rollback();
|