guhongwei 3 년 전
부모
커밋
22a8eca4b4
1개의 변경된 파일8개의 추가작업 그리고 6개의 파일을 삭제
  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);
+    // }
   }
 }