|
@@ -75,7 +75,10 @@ class PatentwarningService extends CrudService {
|
|
|
const tifPaths = filePaths.filter(f => f.includes('.tif'));
|
|
|
let lastResult;
|
|
|
if (tifPaths && tifPaths.length > 0) lastResult = this.toUploadTif(warningData, tifPaths);
|
|
|
- if (lastResult) { await this.dirDelete(`${uncompressFilePath}${fileName}`); }
|
|
|
+ if (lastResult) {
|
|
|
+ console.log('to delete temp');
|
|
|
+ await this.dirDelete(`${uncompressFilePath}${fileName}`);
|
|
|
+ }
|
|
|
return 'ok';
|
|
|
}
|
|
|
|
|
@@ -120,6 +123,7 @@ class PatentwarningService extends CrudService {
|
|
|
i.file_url = filePaths;
|
|
|
}
|
|
|
const res = await this.model.insertMany(data);
|
|
|
+ console.log('add finish');
|
|
|
return res;
|
|
|
|
|
|
}
|