ruifeng_liu 3 년 전
부모
커밋
3ace88e57d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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}`);