MaiXinRong пре 4 година
родитељ
комит
618db4c7a6
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/service/stage_detail.js

+ 1 - 1
app/service/stage_detail.js

@@ -135,7 +135,7 @@ module.exports = app => {
                     await this.db.update(this.tableName, newData);
                     return newData;
                 } else {
-                    const nd = this._.assign(od, d);
+                    const nd = this._.assign(org, data);
                     delete nd.id;
                     await this.db.insert(this.tableName, data);
                     return data;