Browse Source

修复变更bug

laiguoran 4 years ago
parent
commit
af54306097
1 changed files with 1 additions and 1 deletions
  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();