laiguoran hace 4 años
padre
commit
ead5dfb2db
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/service/stage_change_final.js

+ 1 - 1
app/service/stage_change_final.js

@@ -62,7 +62,7 @@ module.exports = app => {
                     qty: c.qty,
                 });
             }
-            await transaction.insert(this.tableName, data);
+            if (data.length > 0) await transaction.insert(this.tableName, data);
         }
 
         /**