lrf 2 år sedan
förälder
incheckning
c9d7b3efba
1 ändrade filer med 2 tillägg och 4 borttagningar
  1. 2 4
      app/service/patent/patentwarning.js

+ 2 - 4
app/service/patent/patentwarning.js

@@ -38,7 +38,6 @@ class PatentwarningService extends CrudService {
     const tempDirRootPath = `${uncompressFilePath}${sep}`;
     const tempDirRootPath = `${uncompressFilePath}${sep}`;
     const tempDir = await fs.readdirSync(tempDirRootPath);
     const tempDir = await fs.readdirSync(tempDirRootPath);
     const errorList = [];
     const errorList = [];
-    let throwData = [];
     for (const tempDirPath of tempDir) {
     for (const tempDirPath of tempDir) {
       if (tempDirPath.includes('.zip')) continue;
       if (tempDirPath.includes('.zip')) continue;
       // const thisDirPath = `${tempDirRootPath}${sep}${tempDirPath}`;
       // const thisDirPath = `${tempDirRootPath}${sep}${tempDirPath}`;
@@ -133,8 +132,8 @@ class PatentwarningService extends CrudService {
               continue;
               continue;
             }
             }
           }
           }
+
         }
         }
-        throwData = [...throwData, ...patents];
       } finally {
       } finally {
         try {
         try {
           await this.dirDelete(`${thisDirPath}`);
           await this.dirDelete(`${thisDirPath}`);
@@ -144,8 +143,7 @@ class PatentwarningService extends CrudService {
       }
       }
     }
     }
     if (errorList.length > 0) return errorList;
     if (errorList.length > 0) return errorList;
-    return throwData;
-    // return 'ok';
+    return 'ok';
   }
   }
 
 
   /**
   /**