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;