Browse Source

info导入

ruifeng_liu 3 năm trước cách đây
mục cha
commit
20509ae8e6
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      app/service/patent/patentinfo.js

+ 2 - 1
app/service/patent/patentinfo.js

@@ -241,7 +241,8 @@ class PatentinfoService extends CrudService {
       }
       i.inventor = iList;
     }
-    await this.model.insertMany(arr);
+    const res = await this.model.insertMany(arr);
+    return res;
   }
   async toExport({ user }) {
     const data = {