ruifeng_liu 3 years ago
parent
commit
3ace88e57d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/patent/patentwarning.js

+ 1 - 1
app/service/patent/patentwarning.js

@@ -74,7 +74,7 @@ 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 (tifPaths && tifPaths.length > 0) lastResult = await this.toUploadTif(warningData, tifPaths);
     if (lastResult) {
       console.log('to delete temp');
       await this.dirDelete(`${uncompressFilePath}${fileName}`);