Parcourir la source

fix parameter of streamToPromise

Ryu Sato il y a 2 ans
Parent
commit
bf2795add2

+ 1 - 1
apps/app/src/server/service/growi-bridge.ts

@@ -124,7 +124,7 @@ class GrowiBridgeService {
     });
 
     try {
-      await streamToPromise(unzipStream);
+      await streamToPromise(unzipStreamPipe);
     }
     // if zip is broken
     catch (err) {

+ 1 - 1
apps/app/src/server/service/import.js

@@ -417,7 +417,7 @@ class ImportService {
       }
     });
 
-    await streamToPromise(unzipStream);
+    await streamToPromise(unzipStreamPipe);
 
     return files;
   }