ellisran 1 anno fa
parent
commit
b7ce0d3984
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/service/change_audit.js

+ 1 - 1
app/service/change_audit.js

@@ -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();