ruifeng_liu 3 年 前
コミット
20509ae8e6
1 ファイル変更2 行追加1 行削除
  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 = {