MaiXinRong 1 năm trước cách đây
mục cha
commit
ccc2da84d0
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      app/service/stage_audit.js

+ 2 - 1
app/service/stage_audit.js

@@ -278,7 +278,8 @@ module.exports = app => {
                     throw '该审核人不存在';
                 }
                 await this._syncOrderByDelete(transaction, stageId, auditor.order, times);
-                await transaction.delete(this.tableName, condition);
+                // 移除整个流程的人
+                await transaction.delete(this.tableName, { sid: stageId, order: auditor.order, times});
                 await transaction.commit();
             } catch (err) {
                 await transaction.rollback();