guhongwei 3 anni fa
parent
commit
22a8eca4b4
1 ha cambiato i file con 8 aggiunte e 6 eliminazioni
  1. 8 6
      app/service/patent/patentassess.js

+ 8 - 6
app/service/patent/patentassess.js

@@ -100,12 +100,14 @@ class PatentassessService extends CrudService {
       default:
         break;
     }
-    if (code !== '2') {
-      const obj = { to, content };
-      await this.notice.create(obj);
-    } else {
-      await this.notice.insertMany(arr);
-    }
+    const obj = { to, content };
+    await this.notice.create(obj);
+    // if (code !== '2') {
+    //   const obj = { to, content };
+    //   await this.notice.create(obj);
+    // } else {
+    //   await this.notice.insertMany(arr);
+    // }
   }
 }