ruifeng_liu 3 лет назад
Родитель
Сommit
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 = {