Explorar el Código

修复变更bug

laiguoran hace 4 años
padre
commit
af54306097
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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();