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