浏览代码

修复变更bug

laiguoran 4 年之前
父节点
当前提交
af54306097
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/change_audit.js

+ 1 - 1
app/service/change_audit.js

@@ -382,7 +382,7 @@ module.exports = app => {
                     order++;
                     uSort++;
                 }
-                await transaction.insert(this.tableName, newAuditors);
+                if (newAuditors.length > 0) await transaction.insert(this.tableName, newAuditors);
                 await transaction.commit();
             } catch (err) {
                 await transaction.rollback();