MaiXinRong пре 1 година
родитељ
комит
ccc2da84d0
1 измењених фајлова са 2 додато и 1 уклоњено
  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();