2
0
reiji-h 1 жил өмнө
parent
commit
3b4c6e04db

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

@@ -79,11 +79,11 @@ class GrowiBridgeService {
 
 
     const readStream = fs.createReadStream(zipFile);
     const readStream = fs.createReadStream(zipFile);
     const parseStream = unzipStream.Parse();
     const parseStream = unzipStream.Parse();
-    const unzipStreamPipe = pipeline(readStream, parseStream);
+    const unzipEntryStream = pipeline(readStream, parseStream);
 
 
     let tapPromise;
     let tapPromise;
 
 
-    const unzipEntryStream = unzipStreamPipe.on('entry', (entry: Entry) => {
+    unzipEntryStream.on('entry', (entry: Entry) => {
       const fileName = entry.path;
       const fileName = entry.path;
       const size = entry.size; // might be undefined in some archives
       const size = entry.size; // might be undefined in some archives
       if (fileName === this.getMetaFileName()) {
       if (fileName === this.getMetaFileName()) {